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.

GDBG combobox

Thread ID:





40622 Feb 8,2006 08:11 AM Feb 10,2006 08:46 AM Windows Forms 3
Tags: GridControl
Horea Soanca
Asked On February 8, 2006 08:11 AM

I have a combobox hosted in a cell. I also have a contextmenu. How do i make the combobox not to open on right click ?

Administrator [Syncfusion]
Replied On February 9, 2006 01:22 AM

Hi Horea, By default the ComboBox in a grid cell wont open on a right click. I have attached a sample. Are you trying something else? Regards, Calvin.


Horea Soanca
Replied On February 10, 2006 07:28 AM

I initialize the combobox in the following way: grid.Binder.InternalColumns[gf.DBName].StyleInfo.CellType = "ComboBox"; grid.Binder.InternalColumns[gf.DBName].HeaderText = headerText; grid.Binder.InternalColumns[gf.DBName].StyleInfo.DataSource = FillCollection(Global.EntityTypes.Technology); grid.Binder.InternalColumns[gf.DBName].StyleInfo.DropDownStyle = GridDropDownStyle.Exclusive;

Administrator [Syncfusion]
Replied On February 10, 2006 08:46 AM

Hi Horea, It is due to the DropDownStyle property of the grid being set to ''Exclusive''. You can work around this problem by handling the CurrentCellShowingDropDown and CellClick events. See the modified sample for more details. 40622.zip Best Regards, Leo.


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.