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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Controlling the group caption text

Thread ID:





25802 Mar 8,2005 08:03 AM UTC Mar 8,2005 09:28 AM UTC WinForms 1
Tags: GridControl
Sigurd Ringbakken
Asked On March 8, 2005 08:03 AM UTC

Hi! I would like to to decide the group caption text appearance based on the actual data in the grouping columns. For example, if a grouping column contains a specific value the caption text for that group shall differ from the other groups. Is this possible? I know I can achieve this by adding an unbound column, building the display text and then group by this column - but I was hoping to avoid this. Regards, Sigurd Ringbakken

Administrator [Syncfusion]
Replied On March 8, 2005 09:28 AM UTC

You can also do it using QueryCellStyleInfo. There if(e.Style.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionCell) then set e.Style.Text to what you want. You can use code like this to get at th egroup. GridCaptionRow capRow = e.Style.TableCellIdentity.DisplayElement as GridCaptionRow; Group g = capRow.ParentGroup;


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon