I have ultrawingrid. It display edit icon in fixed column of a row when user edits cell value. That is fine but the icon also displays when I change the cell value from code. How can I prevent that and display edit icon only when user edits.
Thanks
If you attach a ValueList to a column or cell and your ValueList has a DataValue and a DisplayText for each item like you have here, then you do not need to look at the ValueList to get the cell data. You just use the Value property on the cell to get the value and the Text property to get the text.
Mike Saltzman"] Also there is a requirement that dropdownlist contains description and once it is selected it is replaced by its non descriptive form. Is there any way of doing that? I'm not sure what you mean by this at all. What are you trying to replace where? [/quote] The item for the list for dropdown has key and value property. How can I get the "key" value based on the "value" selected from dropdown list. E.g. Dim list As New Infragistics.Win.ValueList() list.ValueListItems.Add("a","Apple") list.ValueListItems.Add("b","Ball")curColumn.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownListcurColumn.ValueList = list. I obtain the value selected by user using selectedRow("columnName").Value. Doing this I get the value Apple but I need to get "a". thanks
Also there is a requirement that dropdownlist contains description and once it is selected it is replaced by its non descriptive form. Is there any way of doing that?
I'm not sure what you mean by this at all. What are you trying to replace where?
[/quote]
The item for the list for dropdown has key and value property. How can I get the "key" value based on the "value" selected from dropdown list. E.g.
Dim list As New Infragistics.Win.ValueList() list.ValueListItems.Add("a","Apple")
list.ValueListItems.Add("b","Ball")curColumn.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownListcurColumn.ValueList = list.
I obtain the value selected by user using
selectedRow("columnName").Value. Doing this I get the value Apple but I need to get "a".
thanks
Hi,
Dibya said:Any properties to change the dropdown style of dropdownlist? The default style is covering the column on its left.
It sounds like you want to align the dropdown to the right of the cell instead of the left? I don't think there is any way to do this, unless the UltraDropDown has a DropDownAlignment property or something like that.
Dibya said:Also there is a requirement that dropdownlist contains description and once it is selected it is replaced by its non descriptive form. Is there any way of doing that?
That worked perfectly. Thanks
Any properties to change the dropdown style of dropdownlist? The default style is covering the column on its left.
Call row.Update to commit the changes to the data source after you change the cell value(s).