(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
With reference as far as I have understood the same. You need to set the Column / Cell Style to Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList . And the editing will take care of itself.
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.
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.
PolarBear2k said:I'm looking for an option to go into the column's properties and specify the display style as a DropDown/DropDownList and having to set the DataSource, DataMember, DisplayMember and Value Member properties. During runtime this would render the column as abound dropdown. The KB article mentioned in this thread explains to set the ValueList property accordingly:e.Layout.Bands[0].Columns["Int32 1"].ValueList = this.ultraDropDown1; But where is the ultraDropDown1 control coming from? Obviously it needs to be already present on the form or entered manually by code and have its Data properties set. It seems to be that this control should be automatically created when you would change the display type of the column to DropDown/DropDownList.
I'm looking for an option to go into the column's properties and specify the display style as a DropDown/DropDownList and having to set the DataSource, DataMember, DisplayMember and Value Member properties. During runtime this would render the column as abound dropdown.
The KB article mentioned in this thread explains to set the ValueList property accordingly:
e.Layout.Bands[0].Columns["Int32 1"].ValueList = this.ultraDropDown1;
But where is the ultraDropDown1 control coming from? Obviously it needs to be already present on the form or entered manually by code and have its Data properties set. It seems to be that this control should be automatically created when you would change the display type of the column to DropDown/DropDownList.
UltraDropDown is a control included with NetAdvantage, just like the grid. So yes, you would have to place the control on the form at design-time or create one in code at run-time and set it's properties like DataSource, DataMember, DisplayMember and ValueMember. I'm not sure what you mean about "this control should be automatically created". There's no way for the grid to create it automatically or determine what settings you want to use, what table to bind it to, etc.
Hi,
Plz help me to solve this issue.
Thanks