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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to delete a selected record from child table in WinForms GridGroupingControl?

Platform: WinForms |
Control: GridGroupingControl

Delete the record from child table

In order to delete the selected row from the child table, GetTable method can be used to get the child table and the selected record will be deleted by Record.Delete method for child table. 


private void button1_Click(object sender, EventArgs e)
   Syncfusion.Grouping.SelectedRecordsCollection selectedRecordsCollection= null;
   //Used to get the child table
   Table table = this.gridGroupingControl1.GetTable("MyChildTable");
   selectedRecordsCollection= table.SelectedRecords;
   foreach (Syncfusion.Grouping.SelectedRecord selectedRecord in selectedRecordsCollection)
      //Used to delete the selected records.


Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles button1.Click
   Dim selectedRecordsCollection As Syncfusion.Grouping.SelectedRecordsCollection = Nothing
   'Used to get the child table
   Dim table As Table = Me.gridGroupingControl1.GetTable("MyChildTable")
   selectedRecordsCollection = table.SelectedRecords
   For Each selectedRecord As Syncfusion.Grouping.SelectedRecord In selectedRecordsCollection
      'Used to delete the selected records.
   Next record 
End Sub


Before Deletion

Before delete the record from child table

After Deletion

After delete the record from child table



C#: Deleting_Record_CS

VB: Deleting_Record_VB

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile