views:

185

answers:

0

I'm wondering if somebody can show me how to update an UltraWinGrid cell programmatically. And my intention is that the UltraWinGrid's BeforeExitEditMode event will be called subsequently. Here's some of my code:

Friend With Events uddInventory As UltraWinGrid.UltraDropDown

Public Sub Example()
Dim dv As New DataView(m_dtInventory)
dv.RowFilter = "item_id = '" & newInventoryItemId & "'"
dv.RowStateFilter = DataViewRowState.CurrentRows

Dim activeRow = _
     From row In uddInventory.Rows _
     Where row.Cells.Item("item_id").Value = dv.Item(0).Item("item_id") _
     Select row

If dv.Count > 0 Then
     For Each row As UltraWinGrid.UltraGridRow In activeRow
        uddInventory.ActiveRow = row
        uddInventory.SelectedRow = row
        ' This is where i don't know how to update the UltraWinGrid cell.
     Next
End Sub