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.

How to prevent the text in the ComboBox from going to the next item when it is doubleclicked.

Thread ID:





19592 Sep 29,2004 01:16 PM Sep 30,2004 08:08 AM Windows Forms 5
Tags: GridControl
Dongxian Li
Asked On September 29, 2004 01:16 PM

Hi, In our project we use the GridControl and ComboBox as its celltype. The problem is: when user doubleclicks the text of the ComboBox, the next item in the list is automatically selected and the text is highlighted. We do not want this behavior, we want the original text to stay and the text get highlighted. How can we do that? Thanks Dongxian

Administrator [Syncfusion]
Replied On September 29, 2004 02:08 PM

To avoid this behavior, I think you would have to derive GridComboBoxCellModel and GridComboBoxCellRenderer to create your own custom combobox celltype. Then in your renderer class, override OnEditPartMouseDown and do not call the baseclass.

Administrator [Syncfusion]
Replied On September 29, 2004 02:54 PM

Here is a thread that has a sample in it. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=13608

Dongxian Li
Replied On September 30, 2004 06:35 AM

Thanks. Is there any plan to include this feature in the ComboBox in the future release? It would be nice if we don''t have to derive our own ComboBoxes. I think it is a useful feature that many people would like to have. >Here is a thread that has a sample in it. > >http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=13608

Administrator [Syncfusion]
Replied On September 30, 2004 07:52 AM

I have added this (Item 587) to our Open Issues database as a feature request.

Dongxian Li
Replied On September 30, 2004 08:08 AM

That is great. Thanks. Dongxian


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.