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.
Up arrow icon