B
Bob Day
I need to delete ALL rows in a dataset and currently use the method in the
code snippet below, which works fine. However, there can be 100,000 rows,
which makes the FILL, DR.Delete and UPDATE take a very long time.
Is there a way to simply delete the entire dataset and then update that to
the datasource more effectinely?
Thanks!
Bob Day
' FILL from datasource to dataset (not shown)
' Used to iterate through Details Row Collection
Dim DR As DS_Methods_Base.Methods_DetailsRow
' Iterate through the rows colleciton, Delete each rows in DataSet
For Each DR In gmCD.DS_Methods.Methods_Details.Rows
DR.Delete()
Next
' UPDATE from dataset to datasource (not shown)
code snippet below, which works fine. However, there can be 100,000 rows,
which makes the FILL, DR.Delete and UPDATE take a very long time.
Is there a way to simply delete the entire dataset and then update that to
the datasource more effectinely?
Thanks!
Bob Day
' FILL from datasource to dataset (not shown)
' Used to iterate through Details Row Collection
Dim DR As DS_Methods_Base.Methods_DetailsRow
' Iterate through the rows colleciton, Delete each rows in DataSet
For Each DR In gmCD.DS_Methods.Methods_Details.Rows
DR.Delete()
Next
' UPDATE from dataset to datasource (not shown)