Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
710
Problem with ESC key in grid when a row is selected
posted

Hi,

I need to get rid of the ESC behavior when a row is selected (by clicking on the little arrow on the left).

I want nothing to happen when user click on the ESC key after the clicked on the row arrow on the left.

I have done:

 

for (int i = grid.KeyActionMappings.Count - 1; i >= 0; i--)

{

GridKeyActionMapping kam = grid.KeyActionMappings[i];if (kam.KeyCode == Keys.Escape)

{

grid.KeyActionMappings.Remove(i);

}

}

This works fine to avoid the ESC key to work when a cell is edited, but it does not help me when a cell is not activated but when a row is selected.

Thanks for your help.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

     Hi,

        I'm afraid I don't follow you. What happens when you press ESC and a row is selected? I am not aware of any default behavior for this.  

Children
No Data