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

GridGroupingControl - update DataRow when cell edit complete

How to update DataRow (commit changes in the grid) when GridGroupingControl cell edit complete?

GridGroupingControl by default commit changes to the DataRow when user click on other record or leave GridGroupingControl.

1 Reply

LS Lingaraj S Syncfusion Team September 30, 2009 01:25 PM UTC

Hi Sergey,

Thank you for your interest in Syncfusion products.

Please try using Table.EndEdit method in TableControlCurrentCellAcceptedChanges event to achieve your requirement.

Refer the code below:

****************C# CODE**************************
this.gridGroupingControl1.TableControlCurrentCellAcceptedChanges += new GridTableControlCancelEventHandler(gridGroupingControl1_TableControlCurrentCellAcceptedChanges);
void gridGroupingControl1_TableControlCurrentCellAcceptedChanges(object sender, GridTableControlCancelEventArgs e)
{
this.gridGroupingControl1.Table.EndEdit();
}
****************VB CODE**************************
AddHandler gridGroupingControl1.TableControlCurrentCellAcceptedChanges, AddressOf gridGroupingControl1_TableControlCurrentCellAcceptedChanges
Private Sub gridGroupingControl1_TableControlCurrentCellAcceptedChanges(ByVal sender As Object, ByVal e As GridTableControlCancelEventArgs)
Me.gridGroupingControl1.Table.EndEdit()
End Sub


Please let me know if you have any queries.

Regards,
Lingaraj S.

Loader.
Live Chat Icon For mobile
Up arrow icon