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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Prevent edit mode for cell click?

Thread ID:

Created:

Updated:

Platform:

Replies:

83345 Jun 24,2009 08:04 PM UTC Jun 25,2009 10:51 AM UTC Windows Forms 1
loading
Tags: GridControl
Aaron Schaefer
Asked On June 24, 2009 08:04 PM UTC

I'm wondering if there's a way to prevent the cell from immediately going into edit mode when the user clicks the cell. I would like the cell to become the current cell when cliekced, but not immediately go into edit mode. This makes it easier for the user to CTRL+C then CTRL+V.

Thanks,

Aaron

Lingaraj S [Syncfusion]
Replied On June 25, 2009 10:51 AM UTC

Hi Aaron,

Thank you for your interest in Syncfusion product.

The GridControl is default cell activation in single click, so the cell goes to edit mode when the cell click has been performed in GridControl. If you want to prevent the edit mode in click, then please try using ActivateCurrentCellBehavior property in options to achieve this behavior. If the ActivateCurrentCellBehavior set to GridCellActivateAction.DblClickOnCell, then it will go to edit mode, when the double click has been performed in GridControl cell.

Refer the code below:

this.gridControl1.Model.Options.ActivateCurrentCellBehavior = GridCellActivateAction.DblClickOnCell;


Please let me know if you have any queries.

Regards,
Lingaraj S.

CONFIRMATION

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.

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

;