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

.TopLevelGroupOptions.ShowCaption

Thread ID:

Created:

Updated:

Platform:

Replies:

120301 Sep 18,2015 03:28 PM UTC Sep 23,2015 05:57 AM UTC WinForms 3
loading
Tags: GridGroupingControl
Frank Piplak
Asked On September 18, 2015 03:28 PM UTC

Hello,

when I set .TopLevelGroupOptions.ShowCaption=true, the CaptionText always in the top.
Therefore I've a problem, is it possible to show the CaptionText in bottom?

Best regards,
Frank

Adhikesevan Kothandaraman [Syncfusion]
Replied On September 22, 2015 04:52 AM UTC

Hi Frank,

 

Thanks for contacting Syncfusion Support.

 

There is no default support for showing the Caption at the end of the Grid. But it can be achieved by having the simple workaround. To show the caption text at the end of the grid, need to customize the GroupFooter section (which will be displayed at the end of the table).  Please refer to the following code example,

 

Code Example:

//Display the GroupFooter cell

this.gridGroupingControl1.TopLevelGroupOptions.ShowGroupFooter = true;

 

//Set the caption text to be displayed

String CaptionText = this.gridGroupingControl1.TableDescriptor.Name + ":" + this.gridGroupingControl1.Table.Records.Count + " Items";

this.gridGroupingControl1.Appearance.GroupFooterSectionCell.CellValue = CaptionText;

 

//Disable the editing

this.gridGroupingControl1.Appearance.GroupFooterSectionCell.CellType = GridCellTypeName.Static;

//Set the height of the GroupCaption

this.gridGroupingControl1.TableOptions.GroupFooterSectionHeight = 20;

 

Sample:

http://www.syncfusion.com/downloads/support/forum/120301/ze/CS1915058535

 

Regards,

Adhi


Frank Piplak
Replied On September 22, 2015 09:57 AM UTC

Hello Adhi,

works, thank you.

Best regards,
Frank

Adhikesevan Kothandaraman [Syncfusion]
Replied On September 23, 2015 05:57 AM UTC

Hi Frank,

Thanks for your update.

We are glad to know that the solution works.  Please contact us for any further assistance.

Regards,

Adhi

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

;