Hello everyone!
How do I get/test the datatype of a certain column of a datatable collection?
Please help me.. thank you :)
Printable View
Hello everyone!
How do I get/test the datatype of a certain column of a datatable collection?
Please help me.. thank you :)
Code:Dim myType As Type
'using the column name
myType = myDataTable.Columns("Surname").DataType
'using the column zero-based index
myType = myDataTable.Columns(1).DataType
Hey, thanks a lot there buddy!