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?
ADAdministrator Syncfusion Team July 22, 2003 12: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).
DHDave HermansJuly 23, 2003 12:47 AM
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.
ADAdministrator Syncfusion Team July 23, 2003 01: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:
And, if you have an empty list, the dropdown would not show.
DHDave HermansJuly 23, 2003 01:41 AM
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)..