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

Thread ID:





70261 Dec 4,2007 02:00 PM Dec 4,2007 05:31 PM Windows Forms 2
Tags: GridControl
Julie Levy
Asked On December 4, 2007 02:00 PM

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 03:16 PM

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 05:31 PM



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.