i want to create my own Datatable (i.e.: with my own column header names) therefore i ahve followed the following lines:
|
The a Dataset "ds" returns a table that has two four columns custIndex, CustName, CustLocation and CustCreditLimit. I only need to load the first two columns, custIndex as CustName to the create table above.
I tried read the rows in the dataset's table then used the following to create the row
|
But i dont know how to load the data in the dataset's table to the created row, how to i do it?
TY
TrinityPosted Oct 11, 2009, 4:20 PM
DataTable dt = new DataTable();
DataSet ds = new DataSet();
dt.Rows.Add(new object[] {"value1","value2","value3" });
ds.Tables.Add(dt);