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 WithNextMe.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
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
Hi Matt,
Is there an event (i.e. DropDownList RowSelected) where I could call such a method?I tried changing the UpdateMode, but it caused other issues that were much more cumbersome to deal with than this one.
Thanks again,~Kelly