Converting a list of an Structure into datatable

Posted by strakastroukas on Stack Overflow See other posts from Stack Overflow or by strakastroukas
Published on 2010-05-30T17:22:06Z Indexed on 2010/05/30 17:32 UTC
Read the original article Hit count: 338

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

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about conversion