I have a dataset which has multiple data tables.
I am changing few values in one of the data table.
I want to replace the existing data table with my new data table . The data table should be in the same index as before.
Is there any way we can do this?
Are you changing values on original datatable or clone?
Assign activity with DataSet(index) = yourNewDataTable should work.
I tried this but it says Data set cannot be indexed.
I want to do in_dataset.Tables(0) = newDatatable but its not working
Hi,
Perhaps you should use not index but TableName as the following.
dt1.TableName="table1"
ds.Add(dt1)
Then
dt2.TableName="table1"
ds.Remove("table1")
ds.Add(dt2)
Please access the datatable with table name.
Regards,