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. Image for the cookie policy date
close icon

GridControl CurrentCellEditingComplete Event

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?

Thanks,
Julie


2 Replies

HA haneefm Syncfusion Team 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");
}
else
Console.WriteLine("Cancel Called");
}

Best regards,
Haneef



JL Julie Levy December 4, 2007 10:31 PM UTC

Thanks!


Loader.
Live Chat Icon For mobile
Up arrow icon