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

Add a checkbox to group header

Thread ID:

Created:

Updated:

Platform:

Replies:

55502 Jan 31,2007 10:22 AM UTC Feb 1,2007 10:11 AM UTC WinForms 5
loading
Tags: GridControl
Beny78
Asked On January 31, 2007 10:22 AM UTC

Hi,

I would like to add a checkbox in the header of goup.
I modified the row header cell type to CheckBox
like this :
this.gridGroupingControl1.Appearance.GroupCaptionRowHeaderCell.CellType = "CheckBox";
I can see the check box, but when I click on it, the checkbox is never checked.
I catch the click event in gridGroupingControl1_TableControlCheckBoxClick.

Administrator [Syncfusion]
Replied On January 31, 2007 05:03 PM UTC

Hi Beny78,

Please try the attached sample and let me know if you are trying something different.
GGC_GroupCheckBox.zip

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On January 31, 2007 06:22 PM UTC

Thank you,
I've found a solution like yours.

but, I have 2 levels of group.

+G1
+G2
row1
row2
...

If I select G1 I want to select all children (G2, then G2 will select row1 and row2)
I didn't know how get the children groups of the current one.

Thanks to help me.

grille3.zip

Administrator [Syncfusion]
Replied On January 31, 2007 07:27 PM UTC

Hi,

Please refer the following thread which discuss with the simillar issue.
http://www.syncfusion.com/support/forums/message.aspx?MessageID=49962

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On February 1, 2007 08:45 AM UTC

Tnaks, but it's nor realy that I want to do,
because :

foreach(Record rec in el.ParentGroup.Records )
{
e.TableControl.Table.SelectedRecords.Add(rec);
}

selected only records.

I want to select the sub-group, because I've got 2 levels of group.


Administrator [Syncfusion]
Replied On February 1, 2007 10:11 AM UTC

It's very easy.
group.Records return child's records
group.Groups return child's groups




>Tnaks, but it's nor realy that I want to do,
because :

foreach(Record rec in el.ParentGroup.Records )
{
e.TableControl.Table.SelectedRecords.Add(rec);
}

selected only records.

I want to select the sub-group, because I've got 2 levels of group.


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.

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

;