Converting a list of an Structure into datatable
- by strakastroukas
I saw a lot of examples regarding conversion of a list to data-table.
I would like to convert a list of structure into a data-table.
How can i do that?
My structure is like ...
Structure MainStruct
Dim Ans1 As String
Dim Ans2 As String
Dim Ans3 As String
Dim Skipped As Boolean
End Structure
and...
Dim St As New MainStruct
Dim Build As New List(Of MainStruct)
I would like to convert the Build
to a datatable