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

GridGroupingControl - ShowCaption bug?

Thread ID:





46385 Jul 12,2006 11:32 AM UTC Jul 12,2006 11:59 AM UTC WinForms 1
Tags: GridControl
Clive Hill
Asked On July 12, 2006 11:32 AM UTC

I have this in my code: GGC.TopLevelGroupOptions.ShowCaption = false; However, the top level Caption is still shown. Is there another property I should be using? Also, in my Child Group Captions I want to display the value of the grouped column cell. I could have some code like this: if(e.Style.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionCell) { GridCaptionRow capRow = e.Style.TableCellIdentity.DisplayElement as GridCaptionRow; Group g = capRow.ParentGroup; if(!g.IsTopLevelGroup) { e.Style.CellValue = groupColCellValue; } } but I''m not sure how to getgroupColCellValue. Any recommendations?

Administrator [Syncfusion]
Replied On July 12, 2006 11:59 AM UTC

I am not sure why your ShowCaption is not working. Below is a sample where it seems to be working OK. You might check your code to see if you might be resetting it to True after code that set it to False was hit. Regarding your second question, you can use QueryCellStyleInfo to set that caption text, but you can also do it by just setting a property. The sample below has this property set and it also shows the code you can use in QueryCellStyleInfo to set the value if you want to do it that way. this.gridGroupingControl1.ChildGroupOptions.CaptionText = "{Category}"; http://www.syncfusion.com/Support/user/uploads/WindowsApplication17_bebbdfb.zip


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