//Data table creation DataTable dt = new DataTable();
for (int i = 0; i < 10; i++)
dt.Columns.Add("SNo", typeof(string));
{
DataRow dr = dt.NewRow();
dr["SNo"] = i.ToString();
}
//Adding new column saying serailNo with datatype as int
dt.Columns.Add("SerailNo", typeof(int), "Convert(SNo ,System.Int32)");
//Now you can see a new column saying serialno with datatype int32