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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to select multiple children of particular parent

Thread ID:





117694 Nov 29,2014 11:27 AM UTC Dec 1,2014 07:34 AM UTC WinForms 1
Tags: GridGroupingControl
Asked On November 29, 2014 11:27 AM UTC

I want to select multiple children of particular parent in gridgroupingcontrol.
For multiple selection  I used
  this.gridgroupingcontrol.TableModel.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;
  this.gridgroupingcontrol.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended
  this.gridgroupingcontrol.TableOptions.AllowSelection = GridSelectionFlags.None;
at RecordExpanding event
I want to select last 2 children of particular parent and I want to delete those children.But when I select those and trying to delete, all children deleted.
Is any solution regarding this?

Neelakandan Kannan [Syncfusion]
Replied On December 1, 2014 07:34 AM UTC

Hi Paurnima,


Thank you for your interest in Syncfusion products.


If you want to remove the child table, you can use Relations property. By using this property you can use Remove() method or RemoveAt() method. Please refer the attached sample and video file.


Please refer the below code:

private void buttonAdv1_Click(object sender, EventArgs e)


int count = this.gridGroupingControl1.TableDescriptor.Relations.Count;

for (int i = count-1; i >= 2; i--)

this.gridGroupingControl1.TableDescriptor.Relations.RemoveAt(i); //Specify your needed Child table.



Please let me know if you have any concerns.   




Attachment: Sample_And_Video_6b7e3c8d.zip


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

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