I have a grouped grid. When I expand a grouped row it thows some events (activerowchange, selectionchange,...)
Can I disable these events? Can I expand a grouped row without throwing any event?
Selection, activerow and pivotrow may be the same after the row expand.
Thanks.
Hi,
I'm not sure I understand your question. It sounds like you are not really talking about events, but rather that you don't want the grid to change states.
When you click on a GroupByRow to expand that row, it becomes the active row and it also gets selection. The events fire to let you know that this happened. So do you really not want the events to fire? Or do you not want the ActiveRow and selection to change?
You might be able to use the BeforeSelectChange event to cancel the changing of the selected row. And I think you can handle BeforeRowActivate and cancel it to prevent the row from being activated.
I have BeforeRowDeactivate event, with object sender and CancelEventArgs e parameters. How can I know this event is fired with a expand button to cancel it?
I have also BeforeRowActivate event to know what row is clicked, but now I can't cancel it and the first row has lost the active row.
I have solved it saving old active row and old pivot in beforerowdeactive event.
Then I have actived the old active row and set pivot row to old pivot, and then cancelling selection in BeforeSelectChange event.