2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
Delete the record from child tableIn 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. C# 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. selectedRecord.Record.Delete(); } } VB 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. selectedRecord.Record.Delete() Next record End Sub Screenshot Before Deletion After Deletion
Samples: |
2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.