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.

GridComboBoxRenderer double click

Thread ID:





60192 Apr 30,2007 09:37 AM Apr 30,2007 11:51 AM Windows Forms 1
Tags: GridControl
Hans Dampf
Asked On April 30, 2007 09:37 AM


we have a derived grid combo box cell (which is editable). Now when I make a double click in the cell I want the current value to be highlighted. The current behavior is that the value in the cell changes to the next value of the listbox. So how can I hightlight the cell value with a double click instead of switching to the next item of the listbox.


PS: I have attached a sample where you can see the behavior


haneefm [Syncfusion]
Replied On April 30, 2007 11:51 AM

Hi Al,

You turn off selecting the next index when user double clicks inside the cell by setting the AllowDoubleClickChangeSelectedIndex property to false. Here is a code snippet

public class MyComboBoxCellModel : GridComboBoxCellModel
public MyComboBoxCellModel(GridModel grid): base(grid)
{ this.AllowDoubleClickChangeSelectedIndex = false;
public override GridCellRendererBase CreateRenderer(GridControlBase control)
return new MyComboBoxCellRenderer(control, this);

Sample: DropDownBox_Select.zip

Best regards,


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.