I'm using a DataGrid to edit a table in a DataSet in a Web form. When the user clicks on the Delete button for a row, the row is marked Deleted in the DataSet. After various rows are edited, I need to iterate through the edited rows and do some database operations that depend on the values of the primary key fields for these rows. How can I get the key after the row is deleted? (You cannot access the columns of a deleted row directly.)
I suppose I could keep an array of keys of deleted records and add the row key to the array when the row is deleted, but that seems like a lot of work.
Thomas M. Lamm
Bradbury & Associates