We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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;

Live Chat Icon For mobile
Up arrow icon