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

CurrenctCellValidating not fired when editing and CellButtonClicked in GDBG

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

1 Reply

AD Administrator 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.

Loader.
Live Chat Icon For mobile
Up arrow icon