The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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?
HAhaneefm 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"); }