I have a button on my grid that sets the status of a field in the entity to "Active".
This works fine until I mark a record for delete with the standard delete control.
Problem is that if I then click the button again I get an error. So I need to check if the record is flagged as deleted and if so not try to activate it.
Perhaps pop up a message instead.
I can check for changes across the grid or on selected item but I want to know if the record is flagged for delete.
How can I find this out?