R
Raterus
Hi,
In my DataSet, I'm trying to keep track of row deletions, so later I can check HasChanges to see if I need to update the datasource. I'm trying to delete a specific row in the dataset that I search out from a primary key. I've found the DataRow I want to delete and have a reference to it.
I've tried this,
myDataSet.myTable.rows.remove(theRowIFound), but it appears this actually removes the row, and doesn't just change the rowstate (correct?)
The only way I see to delete a row/change rowstate is to have the actual ordinal of the row I'm after. How can I get this? Or is there an easier way I can delete this row and change the rowstate, using the actual reference to the row I have?
Thanks!
--Michael
In my DataSet, I'm trying to keep track of row deletions, so later I can check HasChanges to see if I need to update the datasource. I'm trying to delete a specific row in the dataset that I search out from a primary key. I've found the DataRow I want to delete and have a reference to it.
I've tried this,
myDataSet.myTable.rows.remove(theRowIFound), but it appears this actually removes the row, and doesn't just change the rowstate (correct?)
The only way I see to delete a row/change rowstate is to have the actual ordinal of the row I'm after. How can I get this? Or is there an easier way I can delete this row and change the rowstate, using the actual reference to the row I have?
Thanks!
--Michael