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
60
Enter EditMode on Keystroke
posted

Hi,

I want the cells in a UltraGrid to enter in editmode on key stroke;

The .NET DataGridView has the property EditMode, which I set  to onKeyStrokeOrF2, accomplishing this feature, but I can't seem to find a similiar one in the UltraGrid.

Thanks.

  • 4165
    Verified Answer
    Offline posted

    This is what do..I use the grid's keydown event and:

    if (e.KeyCode == Keys.Enter)
    {
     if (ugEquip.ActiveCell.CanEnterEditMode)
     ugEquip.PerformAction(UltraGridAction.EnterEditMode);
    }