Hi i am using a drop down list in ultrawingrid as column
i am using CellChange or AfterCellListCloseUp
event to capture the selected item.
But there was a problem i.e
theselected iten value is not getting updated(Text is getting updated)
for example if the drop down contains two items and we are nvaigating from one item to other item
the selected value is not gettting updated,pevious selected list value is selected.
i had binded the drop down using valuelist.
Please Help me in this problem.
The Value of a cell is the Value from the data source. It is not updated until you leave the cell by default (this can be changed by using the UpdateMode property).
The grid cannot update the Value as the user is still editing a cell, because the text they enter might not be valid, since they are not finished entering it. For example, in a date cell, when the user types a single digit, the grid cannot make that single digit into a valid date, so the grid has to wait until leaves the cell, at which time they are presumably done entering the value.
So the only way to get the value would be to use the text to search the list for a match. You could do this using the GetValue method on the grid' cells ValueListResolved.
Hi Mike
i had used the
Me
.UltraGrid1.UpdateMode = UpdateMode.OnCellChangeOrLostFocus
propery in form load method.
but the value is not getting updated.
with check box also same problem is appearing.
when i uncheck/check the check box old value is getting displaed despite udig the update mode property.
could u please send me a solution to the problem
Thanks
SGK