(This regards Win NOT Web).
I have researched other posts re: "uneditable columns" and have read this article:
HOWTO:How can I make a grid or a column, row, or cell in the UltraWinGrid disabled or read-only?
I have an UltraDropDown in an UltraGrid column.
My issue is that as soon as I set .Activation to anything other than "AllowEdit", as detailed in the
above article, in the InitializeRow event, the UltraDropDown stops working ????
How can I have any UltraDropDown column in a WinGrid for selection purposes ONLY, the column
should NOT be editable following the close of the UltraDropDown ???
This WinGrid has some bound and some unbound columns. This UltraDropDown column of the UltraGrid
is UNBOUND, although the UltraDropDown itself IS BOUND to a 1-column table of items appearing in the dropdown.
How can I prevent editing in the unbound UltraDropDown column ???
Thank you,
XPXJ
Hi,
I'm not sure I understand the behavior you want. The purpose of a dropdown is so that the user can drop it down and choose a value. This modifies the value of the cell in the grid.
Are you saying you want to show a dropdown in a cell but not allow the user to select a new value on it? If so, I'd advise against it, as this would be prety unintuitive and non-standard UI.
If you are saying that you want the user to be able to select an item from the list, but not to type into the cell, then you just need to set the Style of the column to DropDownList.
In my ultragrid, one column is bound with a combobox.
I set the dropdown style of the same as DropDownList.
But still I'm able to edit or delete the text in that combobox.
I should be able to select value from combobox not to delete or edit the value.
Plz help me to solve this issue.
geofjohn said:In my ultragrid, one column is bound with a combobox. I set the dropdown style of the same as DropDownList. But still I'm able to edit or delete the text in that combobox. I should be able to select value from combobox not to delete or edit the value.
You can't use a ComboBox control in a grid. I assume you meant UltraComboEditor or UltraCombo?
The DropDownStyle on the UltraComboEditor or UltraCombo will have no effect on the grid, because the grid column already has a property for this that overrides the dropdown control setting. You need to use the Style property of the column in the grid.