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
1265
DropDownList Column - Doesn't change RowState to Modified
posted

I have an UltraGrid with a dropdownlist (ValueList) column as follows:

For Each MyRow As DataRow In RoleDataTable.Rows
     With MyValueList.ValueListItems
          .Add(MyRow.Item("Role ID"), MyRow.Item("Role Description"))
     End With
Next

Me.AssignmentsUltraGrid.DisplayLayout.Bands(0).Columns("Role ID").ValueList = MyValueList

Here is the issue: when the user changes the value in the dropdownlist, it does not change the RowState of the underlying DataTable to Modified, it leaves it as Unchanged, which then messes up my validation procedures in my OnRowChanging event. 

Anyone have any ideas as to how to get around this?

Thanks,
~Kelly

Parents
  • 37774
    posted

    Kelly,

    When the user selects a new value from the list in a cell, the underlying row does not get updated.  You could force it to be done through the Update method on the row, or you could change the UpdateMode property of the grid itself.

    -Matt

Reply Children