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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:





5637 Jul 11,2003 06:14 AM Jul 11,2003 06:26 AM Windows Forms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On July 11, 2003 06:14 AM

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

Administrator [Syncfusion]
Replied On July 11, 2003 06:26 AM

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.