G
Guest
How can I cast the dataset
I generated the dataset from schema and named it 'Staff'. I use this dataset (staff dataset) as a datasource in the report
then I would like to generate the data from Staff dataset, here is the logic
Dim ds as DataSe
Dim ds2 as DataSet
ds = sqlhelper.ExecuteDataSet (....) //Get data from store proces, this line is o
msgbox(ds.tables(0).rows.count) //return x row
ds2 = new Staff //compiled
ds2.Merge (ds) //compiled but return not row
msgbox (ds2.tables(0).rows.count) //return
How can I get the ds2 returning the same rows as ds? Can anyone help?
I generated the dataset from schema and named it 'Staff'. I use this dataset (staff dataset) as a datasource in the report
then I would like to generate the data from Staff dataset, here is the logic
Dim ds as DataSe
Dim ds2 as DataSet
ds = sqlhelper.ExecuteDataSet (....) //Get data from store proces, this line is o
msgbox(ds.tables(0).rows.count) //return x row
ds2 = new Staff //compiled
ds2.Merge (ds) //compiled but return not row
msgbox (ds2.tables(0).rows.count) //return
How can I get the ds2 returning the same rows as ds? Can anyone help?