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.
Up arrow icon