Hi Aleksew,
Thanks for contacting Syncfusion support.
By default, the modified changes will be updated in the underlying data source whenever the current record is changed or control lost its focus. To update the changes immediately whenever the editing completed, the modified values can be retrieved and updated the source manually by using the SaveChanges() method of CurrentRecordProperty. We created a simple sample as per your requirement and make use of the below code and sample,
Code example
| //Event triggering gridGroupingControl1.TableControlCurrentCellEditingComplete += GridGroupingControl1_TableControlCurrentCellEditingComplete; //Event customization private void GridGroupingControl1_TableControlCurrentCellEditingComplete(objectsender, GridTableControlEventArgs e) { EndEdit(e.TableControl.Table as GridTable); } public void EndEdit(GridTable table) { CurrentRecordPropertyCollection collection = table.CurrentRecordManager.Properties; ArrayList modifiedProperties = new ArrayList(); foreach (CurrentRecordProperty prop in collection) { if (prop.IsModified) { //To add the property descriptor to modified property descriptor modifiedProperties.Add(prop); } } foreach (CurrentRecordProperty prop in modifiedProperties) { //Update the changes to the underlying data source prop.SaveChanges(); } } |
Regards,
Arulpriya