AD
Administrator
Syncfusion Team
December 18, 2006 11:17 AM UTC
I forget to mention - the grid class we are using is GridDataBoundGrid. We will also need to be able to do this in a GridGroupingControl.
AD
Administrator
Syncfusion Team
December 18, 2006 12:10 PM UTC
Hi Jeremy,
For DataBoundGrid :
To push all data to underlying datasource for every cell movement, you need to call in Binder.EndEdit Method(before calling this , you need to call the CurrentCell''s Edit method) in the CurrentCellMoving event of the grid. Here is a code snippet.
//CurrentCellMoving event.
this.grid.CurrentCell.EndEdit(); //saves the currentcell
this.grid.Binder.EndEdit(); //removes the pencil
For GridGroupingGrid:
You can handle the TableControlCurrentCellMoving event and call the Table.EndEdit() method. Here is a code snippet.
e.TableControl.CurrentCell.EndEdit(); //saves the currentcell
e.TableControl.Table.EndEdit();
Let me know if this helps.
Regards,
Haneef