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

Block Edit cell when clicked

Thread ID:

Created:

Updated:

Platform:

Replies:

1599 Nov 13,2002 08:48 PM UTC Nov 13,2002 11:06 PM UTC Windows Forms 1
loading
Tags: GridControl
Teodorico Morell
Asked On November 13, 2002 08:48 PM UTC

Hi, When I click on a cell, it enters editing mode automatically. How can I block this behavior? I would like enter in edit mode with F2 or with the second click (no double-click) Thanks.

Administrator [Syncfusion]
Replied On November 13, 2002 11:06 PM UTC

> Hi, > When I click on a cell, it enters editing mode automatically. > How can I block this behavior? > I would like enter in edit mode with F2 or with the second click (no double-click) > > > Thanks. > > For this to work you should also specify GridCellActivateAction.DblClickOnCell. To detect if there is a mouse click on a cell that is already the current cell, you could handle the CellClick event and check if the clicked cell is the current cell with CurrentCell.HasCurrentCellAt(e.RowIndex, e.ColIndex). If that returns true, you can call CurrentCell.BeginEdit and set the GridCellClickEventArgs.Cancel property to true. Stefan

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

;