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.

GridControl Cell Changing

Thread ID:





73045 Apr 17,2008 04:10 AM Apr 19,2008 03:27 AM Windows Forms 1
Tags: GridControl
Asked On April 17, 2008 04:10 AM

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 03:27 AM

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.

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.