Hi All,
Am binding ValueListItems to the UltraGridCell as showm below.
vl1.ValueListItems.Add(1, "Yes");
this.ultraGrid1.ActiveCell.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
When i change an item in the list one new form should be opened ,this is what my requiresment is.
Not sure about the event which will be fired after the valuelist item is changed, i have tried with ListChanged event but no use,
Could any one of yoy help me on this,
Thanks in Advance,
Pavana
Hi Patrick,
I'm afraid I don't understand what you mean.
Pedde said:I can't find this out through the text, I need the value (for this I set the value).
Why can't use use the Text to get the Value from the list using GetValue?
Pedde said:Now I thaught that ValueListResolved has exactly what I need, but this list contains some strange values, but not the values of the current row.
If the ValueListResolved has the wrong values, then you must be looking at the ValueListResolved of the wrong cell. I don't see any other way that this would be possible.
Hello,
I have exactly the same problem.
I catch the cellChange event and I want to know which Item I have selected.I can't find this out through the text, I need the value (for this I set the value).Now I thaught that ValueListResolved has exactly what I need, but this list contains some strange values, but not the values of the current row.
What I need is access to an object which represents the WHOLE row with all values and texts in the cellchange event.
Is there a possibility to solve my problem?
Regards,Patrick
Hi Abhishek,
I'm not sure what a database has to do with it. But you can't use the selected index of the ValueList to determine the value of the cell, because if the user types into the cell, the ValueList will not be affected until it is dropped down. If you use an event other than CellChange, like AfterCellUpdate, for example, then you can use the Value property of the cell.
If you must use CellChange, then you will need to use the Text property of the cell and search the list to find the matching item. You can do this by using the cell.ValueListResolved.GetValue method.
Hi Mike,
I also having the same problem, i ve to write few validations on selection change of value list item. How do I get selected value of valuelist on cell change event. We can not use Text property for comparision, since it is populated from database.
Thanks,Abhishek
Hi Pavana,
I would use the CellChange even of the grid. Note that this event will fire no matter how the value of the cell is changed - so it could be triggered by the user entering the cell and using the up/down arrow keys.
Also, you have to use the Text property of the cell to get the new selected value, you can't use Value, because Value will not be updated, yet.