We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Exiting Edit mode of a row/column''s last cell

Thread ID:





57123 Feb 26,2007 07:06 PM UTC Feb 26,2007 09:59 PM UTC WinForms 1
Tags: GridControl
Ivan Capin
Asked On February 26, 2007 07:06 PM UTC

Let's say EnterKeyBehavior = GridDirectionType.Right and the current cell is a row's last cell and is in edit mode.

When the enter key is pressed, the current cell not only remains the current cell but also remains in edit mode. That seems to be the default behavior.

How is it possible to exit the edit mode (without changing GridDirectionType) ?


Administrator [Syncfusion]
Replied On February 26, 2007 09:59 PM UTC

Hi Ivan,

You can handle the CurrentCellKeyDown event of the grid and call the CurrentCell.EndEdit() method to finish up editing mode of the grid.

private void gridControl1_CurrentCellKeyDown(object sender, KeyEventArgs e)
if( e.KeyData == Keys.Enter)
GridControl grid = sender as GridControl;
GridCurrentCell cc = grid.CurrentCell;
if( cc.ColIndex == grid.ColCount && cc.IsEditing )

Best regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon