AD
Administrator
Syncfusion Team
February 23, 2004 05:28 PM UTC
CurrentCellChanging fires with every keystroke. CurrentCellValidating fires when you try to leave the cell.
If you want to catch every keystroke, then use CurrentCellChanging. If you only want to handle the final changed value, then handle CurrentCellValidating.
In both places, you get the values like this:
GridCurrentCell cc = this.grid.CurrentCell;
string oldValue = this.grid[cc.RowIndex, cc.ColIndex].Text;
string newValue = cc.Renderer.ControlText;