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

allow editing the cell only when double click

Thread ID:





65067 Jul 25,2007 03:17 AM UTC Jul 25,2007 07:10 PM UTC WinForms 1
Tags: GridControl
Jasper Tam
Asked On July 25, 2007 03:17 AM UTC

Hi Sir/Madem,

I have a GridDataBoundGrid and would like to allow editing the cell only when user double click on the cell.

I had set ActivateCurrentCellBehavior to DblClickOnCell but seems that the current cell can always allow to be edited.

Are there any solution on this. Pls advice.


haneefm [Syncfusion]
Replied On July 25, 2007 07:10 PM UTC

Hi Jasper,

You can try these code:

bool IsDoubleClick = false;
void gridDataBoundGrid1_CellDoubleClick(object sender, GridCellClickEventArgs e)
IsDoubleClick = true;
void gridDataBoundGrid1_CurrentCellStartEditing(object sender, CancelEventArgs e)
if (!IsDoubleClick)
e.Cancel = true;
IsDoubleClick = false;

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

or the page will be automatically redirected to 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