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

How to select multiple children of particular parent in grid grouping control

Hi,
I am using grid grouping control,
I want to select multiple children of particular parent in grid grouping control.
I want to delete multiple children of particular parent at a time by selecting those children.
Is any solution regarding this?
Regards,
Paurnima.


1 Reply

MK Muthukumar Kalyanasundaram Syncfusion Team November 27, 2014 09:39 AM UTC

Hi Paurnima,

 

Thank you for your interest in Syncfusion products.

 

 

 

Query 1

Select the multiple child record from particular  parent table

 

If you want to select the multiple child record from parent table in a grid , you can use the “ListBoxSelectionModeproperty and select the selectionmode as “MultiExtended”. Please refer the below code,

 

Code:

 

this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended;

 

 

Query 2

Delete the multiple children record from particular  parent table

 

 

If you want to remove the multiple selected child record from parent table in a grid, you can use the “DeleteAll()”method. Please refer the below code,

 

Code:

 

private void btnDeselectAll_Click(object sender, EventArgs e)

  {

    foreach (Table tbl in this.gridGroupingControl1.Table.RelatedTables)

    tbl.SelectedRecords.DeleteAll();

  }

 

 

 

Please let us know if you have any concern.

 

Regards,

Muthukumar K


Loader.
Up arrow icon