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
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:





5637 Jul 11,2003 10:14 AM UTC Jul 11,2003 10:26 AM UTC WinForms 1
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;


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon