This is what I am trying to achieve:
How do I get only the updated rows(the rows which have been edited) in the grid/datatable?
I have tried :
DataRow[] updatedRows =
_table.Select(null, null, DataViewRowState.ModifiedCurrent);
But this always returns 0 rows. Is there a way to get only the modified rows?
Worst case:
Thanks!
How about this:
DataTable changedRecordsTable = dataTable1.GetChanges();
You can find more details at How to: Retrieve Changed Rows
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With