Hi,
I am not able to add ComboBox in ultragrid column.
I tried to set the Style as Dropdown, but it's not working.
Only button is working in that way.
Please help me. It's urgent
HOWTO:What is the best way to place a DropDown list in a grid cell?
If I want to make 1 column of the gird become dropdown and the data for the dropdown will be get from a datasource? Is that have others code for it?
Did you check out the KB article I linked to, above?
If you want the list to come from a DataSource, then you can bind either a ValueList or an UltraDropDown and attach it to a grid column.
I was doing it in wrong event but I don't know y it's not appearing while set EditorComponent at design time. Actually my task is to show different type of input controls in single column of each row depending on the value of data. e.g. in bound dataset I have a field named "type" that defines the type of some info and depending on value of "type" I've to show DatePicker, Checkbox, combo, textbox in single column of grid in each row. I hope you may have understood my requirement, I don't know is it possible by any solution or by some tweak. Please suggest me some solution and event that I should use to do this. Thanks alot for your assistance.
The dropdown arrow will not display in the column if it's ReadOnly. Are you able to edit the unbound column? Can you type into it?
If you are able to type into the cell and you still cannot see the dropdown, then something must be removing it from the column.
Are you loading a Layout or a Preset into the grid?
Try putting a button on the form and reading out the ValueList property of the column to make sure it's still set to what you set it to and it's not null.
Hi Mike,
I'm tying to add Combo using your code and I tried even at design time but it doesn't show. I tried both UltraCombo and UltraDropdown but none of them showing neither using EditorComponent nor using ValueList. It's not giving any error but only using ValueList with UltraDropDown.
I've added an unbound column to grid for adding this combo control. If I replace this combo control with check box it works perfect.