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

Add a checkbox to group header

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.

5 Replies

AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team 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.



AD Administrator Syncfusion Team 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.


Loader.
Live Chat Icon For mobile
Up arrow icon