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 CurrentCellEditingComplete Event

Thread ID:





70261 Dec 4,2007 07:00 PM UTC Dec 4,2007 10:31 PM UTC WinForms 2
Tags: GridControl
Julie Levy
Asked On December 4, 2007 07:00 PM UTC

Is there a way to cancel and edit and prevent the CurrentCellEditingComplete event from firing. When i try this.CurrentCell.CancelEdit(), this event is still called. Is there a way to prevent the event from firing or something i can check in the event code to see if the editting was cancelled?


haneefm [Syncfusion]
Replied On December 4, 2007 08:16 PM UTC

Hi Julie,

You need to check the CurrentCell.IsInEndEdit and CurrentCell.IsInDeactivate to detect the cancel changes in a CurrentCellEditingComplete event. Below are the codes:

void gridControl1_CurrentCellEditingComplete(object sender, EventArgs e)
GridCurrentCell cc = this.gridControl1.CurrentCell;
if (cc.IsInEndEdit)
Console.WriteLine("EndEdit Called");
else if (cc.IsInDeactivate )
Console.WriteLine("Deactivate Called");
Console.WriteLine("Cancel Called");

Best regards,

Julie Levy
Replied On December 4, 2007 10:31 PM UTC



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

or the page will be automatically redirected to 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