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

Prevent selection of next item on combobox cell doubleclick?

Thread ID:





96688 Sep 28,2010 03:42 PM UTC Sep 30,2010 07:21 AM UTC WinForms 3
Tags: GridControl
Maxim Software Systems
Asked On September 28, 2010 03:42 PM UTC

Is there a way to prevent a grid cell whose CellType is "ComboBox" from selecting the next item in its DataSource when the cell is double-clicked?

Maxim Software Systems
Replied On September 29, 2010 07:40 PM UTC

Maxim Software Systems
Replied On September 29, 2010 07:40 PM UTC

Jisha Joy [Syncfusion]
Replied On September 30, 2010 07:21 AM UTC

Hi Don,

You can set the AllowDoubleClickChangeSelectedIndex property to false to get the required behavior. The code snippet is as follows.

//Access the cellModel
GridComboBoxCellModel cm = this.gridControl1.CellModels["ComboBox"] as GridComboBoxCellModel;
//Lets you enable or turn off selecting the next index when user double clicks inside cell.
cm.AllowDoubleClickChangeSelectedIndex = false;

Let me know if this helps.



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