In Article KB07841 it talks about putting a DropDown in a grid cell. Similar to other posts on this forum I have two columns in a grid and the dropdown of the second is dependent on the selection of the first column.
I need to dynamically create the list and store it in the cell of the second column. The standard answer is that you can use a drop down (which I need because I have multiple columns in the drop down) but I can't figure out how to dynamically create an UltraDropDown, it seems to be necessary to have one on the form.
Is there a trick or post somewhere that describes how to have an "unlimited" number of drop downs that I can associate with the cells?
Vince can you be more expecific, and make Link to code or Example that we can use. What you said if I miss understood , I can have 30 ultracombo in the grid that have 3 column and 10 rows. And one dataset for each cell. Can be posible or there other work arround. I can't have one dataset that hold all the possible values like Mike suggest , I can build the dataset dinamically appending all new record to a dataset but that will make a lot of code to handle the logic.
Another option would be to use a single dropdown that contain a list of all possible values, then apply a ColumnFilter to it based on the current ActiveRow so that it only shows the values that are valid for that row.
You could create each UltraDropDown object in code, ensure its Name property is set (so you can refer to it later), and add it to the form's Controls collection.