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.

Combo doesn't drop down in Data bound grid

Thread ID:

Created:

Updated:

Platform:

Replies:

5869 Jul 22,2003 12:33 AM Jul 23,2003 02:41 AM Windows Forms 4
loading
Tags: GridControl
Dave Hermans
Asked On July 22, 2003 12:33 AM

For a project i have a databound grid control. This control can be in 2 states, consult or editing. When it goes into edit mode a field becomes a combobox. This works fine, but what it doesn't do is display a drop down list. I can't select another value. And i am sure it is filled up. Anyone know an answer to this? Thanks Dave

Administrator [Syncfusion]
Replied On July 22, 2003 01:16 AM

I am not sure how you are trying to dynamically switch between a TextBox and a ComboBox celltype, but it may be simpler just to set the column to always be a ComboBox, and also set teh column's GridBoundColumn.StyleInfo.ShowsButtons property to GridShowButtons.ShowCurrentCell. This way, you would only see the button when the cell is current. To see the droppedlist, make sure the GridBoundColumn.StyleInfo.DataSource is set properly (& it has bee filled).

Dave Hermans
Replied On July 23, 2003 01:47 AM

Clay, thanks for the feedback. I followed your advice as i was dynamicly switching between Textbox and combo. As it turns out my function wasn't returning any data, i fixed this and tataa, one combo droped. But now for the strange part. I have a second identical grid on the same form but with other data (delivery and redelivery). Now the second grid's combo won't drop down, altough this (same) function returns valid data. Is theire maybe a setting or something that can couse a combo not to drop? Maybe some small thing that is different from one or the other grid? Because the columns of the grids are bound with the same function wich takes the grid as a parameter. So in binding the columns their is no difference, only the data is different. Greets Dave

Administrator [Syncfusion]
Replied On July 23, 2003 02:21 AM

There are settings that would prohibit a combobox from dropping, but by default they are not turned on. Some properties that might affect this are: StyleInfo.Enabled StyleInfo.Clickable StyleInfo.ShowButtons And, if you have an empty list, the dropdown would not show.

Dave Hermans
Replied On July 23, 2003 02:41 AM

Clay, thanks for your fast answers, but i've found it. It was stupid realy, but then again witch bugs aren't..On the second Grid the controlleroptions property was set to SelectCells only. Once i added ClickCells to that it worked. (i noticed the difference between the two grids).. Thanks again, Dave

CONFIRMATION

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.

;