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.
Hi,
I''m using a GridDataBoundGrid, and i only allow editing a line each time. The way i do it is showing an accept button (CellType = "PushButton") that ends the editing mode.
The problem is that if i''m editing a cell and i click on the button the event CurrentCellValidating is not fired and the edited value is lost. How could i force this event to get fired before CellButtonClieckd event?
Thank you
ADAdministrator Syncfusion Team June 19, 2006 06:06 PM UTC
Hi Borja,
Try calling the gridDataBoundGrid1.CurrentCell.EndEdit() before calling the Binder.EndEdit() to see if that helps.
private void gridDataBoundGrid1_CellButtonClicked(object sender, GridCellButtonClickedEventArgs e)
{
this.gridDataBoundGrid1.CurrentCell.EndEdit();
this.gridDataBoundGrid1.Binder.EndEdit();
}
Regards,
Calvin.