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

how to customize GridCaptionRow that sit above GridColumnHeaderRow

Thread ID:





49874 Sep 28,2006 09:07 PM UTC Nov 16,2006 05:08 PM UTC WinForms 5
Tags: Grouping
Asked On September 28, 2006 09:07 PM UTC

I would like to manipulate the top most GridCaptionRow that sits right above the GridColumnHeaderRow. In my case, it has the text ''GroupingSortList: {n} Items''.

1. How do I hide or remove this row?

2. How do I customize the text in this row?

Administrator [Syncfusion]
Replied On September 29, 2006 05:24 AM UTC

Hi James,

Regarding Question 1:

Use the TopLevelGroupOptions.ShowCaption property to show/hide the maintable caption row in a groupingrid. Below is a code.

//To show the GroupCaptionRow.
this.gridGroupingControl1.TopLevelGroupOptions.ShowCaption = true;

//To hide the GroupCaptionRow.
this.gridGroupingControl1.TopLevelGroupOptions.ShowCaption = false;

Regarding Question 2:

Use the TopLevelGroupOptions.CaptionText property to change the text of the maintable caption row in a grid. Below is a code.

this.gridGroupingControl1.TopLevelGroupOptions.CaptionText = "your text here";

Best Regards,

Replied On September 29, 2006 09:35 AM UTC

Unfortunately, this row is still showing... I want to completely remove this row

Administrator [Syncfusion]
Replied On September 29, 2006 12:31 PM UTC

Hi James,

Are you implementing any CustomEngine in your grid? If so , you need to check the TopLevelGroupOptions.ShowCaption property in IsChildVisible override method [ChildTable derived class] . Below is a code snippet.

public class GroupingChildTable : ChildTable, IGridGroupOptionsSource
public override bool IsChildVisible(Element el)
if (this.IsTopLevelGroup)
if (el is CaptionSection )
return true;
return false;
return true;

Sample : http://www.syncfusion.com/Support/user/uploads/GGCHideshowCaption_b56ae658.zip


Replied On September 30, 2006 01:37 AM UTC

you''re too the point. that fix it

Swapnil Kulkarni
Replied On November 16, 2006 05:08 PM UTC

Thanks. That solves my problem too.


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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