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
2335
XamWebGrid Edit Mode on Key Press or key down
posted

Hi,
I am interested to bring cell in edit mode on key press or key down. I don't want to use IsOnCellActiveEditingEnabled as it makes cell in edit mode enven on cell is active.
Further more is there any property to check if a cell is in edit mode or being edited.
Thanks
Imran Javed Zia

Parents
No Data
Reply
  • 6475
    Verified Answer
    posted

    Hi,

    To add to what SteveZ pointed out, to enter edit mode on key down you could add an event handler for Grid's KeyDown event and call EnterEditMode() API. This will cause the currently  active cell to enter Edit mode (if it's an Editable Cell):

    private void igGrid_KeyDown(object sender, KeyEventArgs e)

    {

    if (!((Cell)igGrid.ActiveCell).IsEditing)

    {

    igGrid.EnterEditMode();

    }          

    }

     

    Hope that helps,

Children