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. Image for the cookie policy date
close icon

Prevent selection of next item on combobox cell doubleclick?

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?


3 Replies

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



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



JJ Jisha Joy Syncfusion Team 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


Loader.
Live Chat Icon For mobile
Up arrow icon