I have an UltraWinGrid and one of the columns is of the style DropDownList. After an item is selected from the DropDownList the AfterCellListCloseUp event is fired as expected.
Besides "sender, the other argument of the AfterCellListCloseUp event is "e As Infragistics.Win.UltraWinGrid.CellEventArgs".
I need the selected item's value from the column's valuelist. e.cell.text provides the text of the selected item e.cell.value, however, returns DBnullValue
The ValueList for the column is populated with both a value and a text for each item.
How can I obtain the corresponding value of the item selected from the DropDownList?
Hello Jkrenisky,
If you are using ultraGrid1_AfterCellListCloseUp() event, maybe you are looking for:
ValueListItem item =((ValueList)e.Cell.Column.ValueList).SelectedItem as ValueListItem;
Please take a look at the attached sample for more details. Please let me know if you think that I misunderstood your scenario or if you have any questions.Regards
Have you been able to resolve your issue ? Did you have a time to take a look at the attached sample. Please let me know if you have any questions.
Regards
Hi Georgi,
Thanks for the quick reply and the sample. It worked perfectly!
I would have never thought to try your approach of extracting the value list item associated with the selection. Since the method had an e.cell object, I went for the quick and simple way to get the data I needed presuming it would have all of it's properties current.
Thanks for you expert help.