Dear all,
I have the checkbox in the row in the ultragrid. If checkbox is checked or unchecked, I will modify the current row data, How to do ?? Any sample code?? In what ultragrid event . e.g.
if(Row[i].Cells[0] == true)
{
Row[i].Cells[9].Value=......
}
else
Thanks! this was a VERY enlightening and useful explanation...
Hi,
That's the correct way to do it.
You cannot use the Value property of the cell inside the CellChange event, because this event fires on every keystroke or every change to the cell while it is still in edit mode. The Value property reads from the underlying DataSource of the grid, which does not get updated until you leave the cell.
So using the Text property is the right way to go.
I have solved by writing below code:
bool.parse(this.ultragrid1.activecell.text)==true
How can I access the Checked value in the checkbox of the first column in the ultragrid of cellChange event??
If you want your update to occur immediately when the user clicks on the checkbox, then you should use the CellChange event of the grid.
Note that you cannot use the Value of the cell inside this event - you must use the Text property of the cell, because Value does not get updated until the user leaves the cell and the change is committed.