Collection type to a column

eurob

Member
Joined
Dec 5, 2007
Messages
5
Location
Piqua, OH
Programming Experience
3-5
I try to assign the collection type to a column in a dataset, but when I run it I get the errmsg 'Requires valid data type".
Any idea ?

VB.NET:
dim d as new datatable
Dim col As DataColumn = New DataColumn("mycollection")
col.DataType = System.Type.GetType("Collection")
d.Columns.Add(col)
 
Back
Top