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.

Add a checkbox to group header

Thread ID:

Created:

Updated:

Platform:

Replies:

55502 Jan 31,2007 05:22 AM Feb 1,2007 05:11 AM Windows Forms 5
loading
Tags: GridControl
Beny78
Asked On January 31, 2007 05:22 AM

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 12:03 PM

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 01:22 PM

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 02:27 PM

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 03:45 AM

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 05:11 AM

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.

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.

;