I'm using DevExpress GridControl, where I have data binded and one column contains boolean flag IsOrdered. I registered for the event on my SimpleGridView called CellValueChanged because when my check field (meaning the IsOrdered value) is changed I want to perform some actions.
In the subscriber method I check if (e.Column.FieldName == "IsOrdered")
and then I perform these operations.
The problem is that that CellValueChanged event is raised not until I check the checkbox (by double-click) and click somewhere else. That unfortunately causes an annoying problem here: for example when I have my row in that grid which has IsOrdered set to false (not selected), and I check this checkbox and immediatelly uncheck it and then I click somewhere else, the event is also raised. As I think that event should not be raised in such a case, because that IsOrdered value wasn't actually changed (it was false, then true, and finally false again).
Maybe there is some way to change this default behavior ? What would be perfect is to have CellValueChanged event raised immediately after checkbox is checked/unckecked, not having to click somewhere else the checkbox to have the event raised.
There is also a event called CellValueChanging, but it does not resolve my problem, because that event is raised actually before the IsOrdered's value is changed, but in my subscriber method I need to know if that field's value is changed to true or false.
I will appreciate any help :).