Does anyone know if it is possible (via the designer) to define a single column within the Ultragrid,
so that each of it's cell rows has a Ultradropdown, with a predefined list of choices you have setup
within the designer? e.g. dropdown contains list items "Yes", "No" they can select... with a default
value that is set.
Hi,
Yes, of course this is possible. Which part of it is giving you trouble?
A basic overview of how to do this is something like this:
Drop a grid on a form and use the designer to create a data source (or bind to a data source) with a single column.
Then you need to create the dropdown. You could do this with a ValueList or an UltraDropDown. HOWTO:What is the best way to place a DropDown list in a grid cell?
You attach the dropdown to the column using the ValueList property on the column.
Mike,
Thank you for your quick reply!
The HOWTO link you inserted is broke.
The part that is giving me trouble... is that I have a dropdown ctrl
added to the ultragrid, and have the ValueList property set to that
dropdown but no dropdown is displayed within the cell. I have not
added any values to the dropdown yet... so am assuming that might
be the issue?
kerwinkassulker said:The HOWTO link you inserted is broke.
Actually, the link is working, but it might not work if you are using the latest version of IE. Try running IE in compatibility mode and it should work. I will repost the text of the article below, just in case.
kerwinkassulker said: I have not added any values to the dropdown yet... so am assuming that might be the issue?
I have not
Yes, that could certainly be a problem. Are you seeing the dropdown arrow in the cell at all? If no arrow shows up, then my next guess is that the grid cell does not allow editing.
No, do not see any dropdown arrow in the cell.
I have the following column props set:
CellActivation = AllowEdit
CellClickAction = Edit
Thank you for following up.
No, I cannot change the cell by typing... i.e. and that has left me suspicious something is wrong.
Thank you for the suggestions on what to try... I might need to follow up on this next week.
Can you change the cell value by typing? If not, then the cell is read-only and that's why you cannot see the dropdown. Cells in the grid are editable by default. So you do not need to set any properties to make them editable. So if the cell is not editable, then there are two possibilities.
1) Something in your code is setting a property which disallows editing on that cell (maybe this is happening after the two property settings you have here).
2) You data source does not allow editing (in which case no property setting on the grid can possibly have any effect).