DataSet1 ds = new DataSet1(); DataTable t = ds.Tables.Add("Items"); t.Columns.Add("COMP_NO", Type.GetType("System.Int32")); t.Columns.Add("STATUS", Type.GetType("System.String")); DataRow r; int i = 0; for (i = 0; i <= 9; i++) { r = t.NewRow(); r["COMP_NO"] = i; //r["STATUS"] = "Item" + i; r["STATUS"] = i; t.Rows.Add(r);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)