Create custom Data table

Rajni.Shekhar
Posted by Rajni.Shekhar under ASP.NET category on | Points: 40 | Views : 1329
DataTable dt = CreateTable();
DataRow dr = null;
dr = dt.NewRow();
dr["Column1"] ="Data1";//columns as you wanted, change column1... and Data1
dr["Column2"] ="Data2";
dr["Column3"] ="Data3";
dt.Rows.Add(dr);

Comments or Responses

Login to post response