DataTable dt = new DataTable(); dt.Columns.Add(new DataColumn(gridColumn1, typeof(bool)));
I was expecting the result of the below line to include in
You could always use typeof in the if statement. It is better than working with string values like the answer of Natarajan.
typeof
if (dt.Columns[0].DataType == typeof(DateTime)) { }