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

GridControl Cell Changing

Thread ID:





73045 Apr 17,2008 08:10 AM UTC Apr 19,2008 07:27 AM UTC WinForms 1
Tags: GridControl
Asked On April 17, 2008 08:10 AM UTC

Which event in a GridControl would give me the old and new value when user changes the text in a cell.


Administrator [Syncfusion]
Replied On April 19, 2008 07:27 AM UTC

Hi Raj,

Thanks for the interest in Syncfusion products.

You can use CurrentCellChanged event to get the old value as well as the new value of your grid cell. Please refer the code snippet that shows how we can get the old value and new value of the grid.

private void gridControl1_CurrentCellChanged(object sender, EventArgs e)
GridCurrentCell cc = this.gridControl1.CurrentCell;
string oldvalue = string.Empty;
string newvalue = string.Empty;
oldvalue = this.gridControl1[cc.RowIndex, cc.ColIndex].Text;
newvalue = cc.Renderer.ControlText;
Console.WriteLine(("OldValue=" + oldvalue));
Console.WriteLine(("NewValue=" + newvalue));

Please refer the sample in the below link that illustrates the above.


Please let me know if you have any questions.



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