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
If you need to know when the user clicks on a checkbox in a cell immediately, what you should do is use the CellChange event of the grid and examine the Text property (not the Value) or the cell. You can use Boolean.Parse to convert the text into a bool.
Hi,
i had added a check boxes to the rows of the ultra win grid.
when i checked any check box,
i want to know what row i had checked ,
i am using checkboxname.value to get
whether i had checked a particular row or not.
but the event is not getting updated until i leave the check box.
this is the problem.
please feel free to ask about my problem if u didn't understand the problem.
Thank you,
Hi SGK,
I don't understand your question. When is the cell not getting updated?
OnCellChangeOrLostFocus means the cell does not get updated until you leave the cell by moving to another cell or you switch focus to some other control.