Catching editing ending in the cell

Oct 12, 2009 at 2:34 PM

Hi,

I just started my adventure with SourceGrid and immediatelly I need some help.

i have a code which add a new row into Grid, when in the last row and last column (let's call it  'last cell')  Tab button is pressed. Everythink works fine until I edit the value in the last cell, then when I press Tab the focus moveing into next Control on the Form. So, my question is how to catch pressed Tab in cell editor and then proceed the code in PreviewKeyDown event handler?

Coordinator
Oct 13, 2009 at 1:27 PM

You must subscribe to KeyDown event for that cell editor.

try myGrid[x, lastCell].Editor.Control.KeyDown += myEventHandler;