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

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

Thread ID:

Created:

Updated:

Platform:

Replies:

117680 Nov 27,2014 12:09 AM Nov 27,2014 04:39 AM Windows Forms 1
loading
Tags: GridGroupingControl
Paurnima
Asked On November 27, 2014 12:09 AM

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.


Muthukumar Kalyanasundaram [Syncfusion]
Replied On November 27, 2014 04:39 AM

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


CONFIRMATION

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.

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.

;