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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

5637 Jul 11,2003 10:14 AM UTC Jul 11,2003 10:26 AM UTC WinForms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On July 11, 2003 10:14 AM UTC

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 10:26 AM UTC

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

CONFIRMATION

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.

Warning Icon 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.Close Icon

;