Add rows into DataTable

Rajesh_Kumar
Posted by Rajesh_Kumar under ASP.NET category on | Points: 40 | Views : 725
DataTable dt1 = new DataTable();
dt1.Columns.Add("project_id");
dt1.Columns.Add("project_name");

dt1.Rows.Add("1", "Hospital Management");
dt1.Rows.Add("2", "Job Site");
dt1.Rows.Add("3", "Resume Manager");

Comments or Responses

Login to post response