Change RowState from Edit to Selected

In AXGridView, I want to change the row state of selected row, which is in edit mode to selected mode.

This needs to happen on clicking an external button.

I tried the following ways:

  1. Updated the RowState of the selected Row to DataControlRowState.Selected

  2. Updated the GridView’s EditIndex to -1

None of them worked :(.

Surprisingly, even the e.cancel = true statement in RowEditing event handler is also not changed the row state. :frowning:

I’m new to AX, may be its basic. Please tell me the solutiion/ work around.