SyntaxFix
Write A Post
Hire A Developer
Questions
What you want to use is this property:
dt.Columns[0].DataType
The DataType property will set to one of the following:
DataType
Boolean Byte Char DateTime Decimal Double Int16 Int32 Int64 SByte Single String TimeSpan UInt16 UInt32 UInt64
DataColumn.DataType Property MSDN Reference