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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to customize the grouping text decription that the ggc automatically displays in the GroupCaptionSection

Thread ID:

Created:

Updated:

Platform:

Replies:

55141 Jan 24,2007 12:50 PM UTC Jan 24,2007 05:29 PM UTC WinForms 3
loading
Tags: Grouping
James Blibo
Asked On January 24, 2007 12:50 PM UTC

I have a ggc with a flat datasource that is group by one column.
Assuming that my the name of my group column name is 'ModelName' for example, the ggc always display the text in the GroupCaptionCell as {GroupName}: {GroupNameText} - {} items

for example, if the group column is called 'ModelName' and 'Cars' is one of the ModelName, the GroupCaption Section Cell would show

ModelName: Cars - 23 items
-------
-------
ModelName: Boats - 3 items
-------

I just want to display the the text in the format {GroupNameText} - {} items and leave out the GroupName because it is already included in the header column. I just want to display ...
Cars - 23 items, for example.

Hu Anderson
Replied On January 24, 2007 05:05 PM UTC

Something like this should work:

this.mygrid.ChildGroupOptions.CaptionText = "{CategoryName} - {RecordCount}";

>I have a ggc with a flat datasource that is group by one column.
Assuming that my the name of my group column name is 'ModelName' for example, the ggc always display the text in the GroupCaptionCell as {GroupName}: {GroupNameText} - {} items

for example, if the group column is called 'ModelName' and 'Cars' is one of the ModelName, the GroupCaption Section Cell would show

ModelName: Cars - 23 items
-------
-------
ModelName: Boats - 3 items
-------

I just want to display the the text in the format {GroupNameText} - {} items and leave out the GroupName because it is already included in the header column. I just want to display ...
Cars - 23 items, for example.

James Blibo
Replied On January 24, 2007 05:13 PM UTC

{CategoryName} -{RecordCount} display the same text I had a problem with.

I need something like {CategoryValue} -{RecordCount}.


I need the actual text and not the category name.

RecordCount works, but it does recognized CategoryValue

James Blibo
Replied On January 24, 2007 05:29 PM UTC

found it. it's {Category} and not {CategoryValue}

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

;