Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
310
Grid AfterCellListCloseUp event provides e.cell.text but not e.cell.value
posted

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?

Parents
  • 53790
    Suggested Answer
    posted

    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
     

    UltraGridDropDownListItems.zip
Reply Children