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.

Prevent selection of next item on combobox cell doubleclick?

Thread ID:

Created:

Updated:

Platform:

Replies:

96688 Sep 28,2010 11:42 AM Sep 30,2010 03:21 AM Windows Forms 3
loading
Tags: GridControl
Maxim Software Systems
Asked On September 28, 2010 11:42 AM

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 03:40 PM


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


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

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.

Regards,
Jisha


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.

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.

;