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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Cell Text Changed

Thread ID:

Created:

Updated:

Platform:

Replies:

60284 May 1,2007 11:58 PM UTC May 2,2007 01:48 AM UTC WinForms 1
loading
Tags: GridControl
None
Asked On May 1, 2007 11:58 PM UTC

What is the best was to tell if the text in a cell has changed from an old value to a new value when the current cell moves?

Rajagopal [Syncfusion]
Replied On May 2, 2007 01:48 AM UTC

Hi Marc,

In the CurrentCellValidating event handler, you can detect the cell value being changed. Below is the code snippet.

void gridControl1_CurrentCellValidating(object sender, CancelEventArgs e)
{
GridCurrentCell cc = this.gridControl1.CurrentCell;
string newValue = cc.Renderer.ControlText;
string oldValue = this.gridControl1.Model[cc.RowIndex, cc.ColIndex].CellValue.ToString();
Console.WriteLine("CellValue changed. OldValue: {0} - NewValue: {1}", oldValue, newValue);
}

Thanks for using Syncfusion Products.
Regards,
Rajagopal

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.

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

;