Adding The Columns Into data Table.
DataTable MakeTable= new DataTable();
MakeTable.Columns.Add("Column1", typeof(Int32));
MakeTable.Columns.Add("Column2", typeof(Int32));
MakeTable.Columns.Add("Column3", typeof(Int32));
MakeTable.Columns.Add("Column4", typeof(Int32));
MakeTable.Columns.Add("Column5", typeof(Int32));
MakeTable.Columns.Add("Column6", typeof(Int32));
MakeTable.Columns.Add("Column7", typeof(Int32));
Now add the Row into Table
MakeTable.Rows.Add("Value1","Value2","Value3","Value4","Value5","Value6","Value7");
No comments:
Post a Comment