DataTable dt = new DataTable(); dt.Columns.Add(new DataColumn(gridColumn1, typeof(bool)));
I was expecting the result of the below line to include in
if (dr[dc.ColumnName].GetType().ToString() == "System.DateTime")