is it possible to display a DataRow from a DataTable which has the DataRowState.Deleted?
Scenario: The user can edit some kind of lookup-informations which are presented in the grid. Now he/she can delete, modify or insert multiple entries and finally store all his/her changes with one click to the database (assuming there is no primary-key-violation or some other problem).
Now i want to colorize the different rows according to their edit-status, but the deleted rows disappear immediatly.
Do you have any idea or another approach to solve this problem?
Edit: I realized that the
Gridyou are using is notDataGridView. For anyone who wants to do the same withDataGridView, they can do the following:Create a
DataView:Handle
UserAddedRow,UserDeletedRowandCellValueChangedEvents: