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 selection of next item on combobox cell doubleclick?

Thread ID:

Created:

Updated:

Platform:

Replies:

96688 Sep 28,2010 03:42 PM UTC Sep 30,2010 07:21 AM UTC Windows Forms 3
loading
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.

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.

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

;