Posts

Showing posts with the label How to Create Dynamic Table in C#

How to Create Dynamic Table in C#

 Create a DataTable object Add Columns Using Add Method Create the object on Row DataTable objdt  = new DataTable();                         dtUnits.Columns.Add("ABCNo",typeof(string));                         dtUnits.Columns.Add("UserName", typeof(string)); var row = objdt  .NewRow();                                 row["ABCNo"] =   ItemNO;                                 row["UserName"] = Aranav;                                 dtUnits.Rows.Add(row);

Popular posts from this blog

String Program in C#

Api

Oracle database