Home Forums WinForms controls Xceed Grid for WinForms Insertion row confusion Reply To: Insertion row confusion

User (Old forums)
Member
Post count: 23064

This can also be done by using the QueryInputKey on the CellEditorManager of the last column.

e.g.:

private void Form1_Load(object sender, EventArgs e)

{

    gridControl1.Columns[ “Last column” ].CellEditorManager.QueryInputKey += new QueryEditorInputKeyEventHandler(CellEditorManager_QueryInputKey);

}

void CellEditorManager_QueryInputKey( object sender, QueryEditorInputKeyEventArgs e )

{

    if( e.Cell.GetType() == typeof( InsertionCell ) )

    {

        if( e.KeyData == Keys.Tab )

        {

            insertionRow1.EndEdit();

        }

    }

}

Imported from legacy forums. Posted by André (had 858 views)