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 get the value of a caption summary collumn

Thread ID:





70651 Dec 24,2007 09:51 AM UTC Jan 22,2008 10:52 PM UTC WinForms 5
Tags: Grouping
Wills Jiang
Asked On December 24, 2007 09:51 AM UTC



I try to get the value of a caption summary collumn.but can't get the rowindex of it(it return -1 for a summary row on caption).

how to do it.

need your help.

haneefm [Syncfusion]
Replied On December 27, 2007 09:12 PM UTC

Hi Wills,

Please refer to the below forum threads and let me know if this helps.

Best regards,

Wills Jiang
Replied On December 30, 2007 07:17 AM UTC

Thanks for your reply.

I have went through the articles.It is useful.

But Actrually what I want to do is:

Mouse click a cell of the GroupingControl,and get the value from a raw data row and a summary row on caption.
I can get value of raw data row ,but cann't for summary row on caption

haneefm [Syncfusion]
Replied On January 4, 2008 07:02 PM UTC

Hi Wills,

To get get the CaptionText in TableControlCellClick event, please try these code.

void gridGroupingControl1_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e)
GridTableCellStyleInfo Style = e.TableControl.Table.GetTableCellStyle(e.Inner.RowIndex, e.Inner.ColIndex) as GridTableCellStyleInfo;
Element el = Style.TableCellIdentity.DisplayElement;
if (el.Kind == DisplayElementKind.Caption)
string CaptionText = el.GetCaptionSection().ParentGroup.CategoriesToString();


Best regards,

Wills Jiang
Replied On January 14, 2008 08:46 AM UTC

Hi Haneef,

Thanks for your reply.

I tried the code,
but it prompts a message:
'Syncfusion.Grouping.Element' does not contain a definition for 'GetCaptionSection'

hot to solve it?

Thanks a lot.


haneefm [Syncfusion]
Replied On January 22, 2008 10:52 PM UTC

Hi Wills,

You can use the below code snippet to get the caption section from the element.

public CaptionSection GetCaptionSection(Element el)
CaptionSection cs = el as CaptionSection;
if (cs == null && el != null)
cs = el.ParentSection as CaptionSection;
return cs;

Best regards,


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