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


Thread ID:





55334 Jan 29,2007 09:25 AM UTC Jan 29,2007 12:59 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On January 29, 2007 09:25 AM UTC


we are using a business object which is bound to a GGC. One property of the business object is of kind enum. This enum property is localized via a custom EnumConverter class. Everything works fine.

The problem occurs when enabling grouping. When I drop the column (which hold the enum type) to the group drop area i get the following GroupCaptionCell:

"Parameter Name: Value1 - 10 Items"

but the corresponding converted enum value is "LocalizedValue1". So I would suggest something like this:

"Parameter Name: LocalizedValue1 - 10 Items"

Now I thought I can handle this GroupCaptionCell type by myself in the QueryCellStyleInfo event. But how can I find out the current "CategoryName" and "Category" so that I can handle the localization?


Administrator [Syncfusion]
Replied On January 29, 2007 11:33 AM UTC

Try code like:

void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
if (e.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionCell)
GridCaptionRow cap = e.TableCellIdentity.DisplayElement as GridCaptionRow;
if(cap != null && cap.ParentGroup != null && cap.ParentGroup.Category != null)
//cap.ParentGroup.Category // the value
// cap.ParentGroup.CategoryColumns[0].Name // the column name

to see if this gives you what you need.

Administrator [Syncfusion]
Replied On January 29, 2007 12:59 PM UTC

Hi Clay,

thanks - this works fine for me :-)


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