How to get the new contents (text) of a cell inside CurrentCellChanged event?

I use a DataSet->DataView->GridDataBoundGrid chain. Inside CurrentCellChanged event handler I try something like this: GridDataBoundGrid grid = (GridDataBoundGrid sender; int rowIdx = grid.CurrentCell.RowIndex; int colIdx = grid.CurrentCell.ColIndex; DataRow row = dataView[rowIdx - 1].Row; string s = row[colIdx - 1].ToString(); I expected s to contain the new text, but it holds just "", ever (while inside the event handler). How to get the subject? Grateful in advance, Alexey

1 Reply

AD Administrator Syncfusion Team July 11, 2003 10:26 AM UTC

You get it from the cellrenderer. GridCurrentCell cc = this.grid.CurrentCell; string newValue = cc.CellRenderer.ControlText;

Loader.
Up arrow icon