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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Setting GroupCaptionCell column format and alignment.

Thread ID:

Created:

Updated:

Platform:

Replies:

49535 Sep 20,2006 08:31 PM UTC Sep 21,2006 04:49 AM UTC WinForms 1
loading
Tags: Grouping
jamesb
Asked On September 20, 2006 08:31 PM UTC

How do you set a specific GroupCaptionCell/GroupCaptionSummaryCell or SummaryFieldCell/CustonSummary field format and text-alignment. The code below...
this.gridGroupingControl.Appearance.GroupCaptionSummaryCell.HorizontalAlignment = GridHorizontalAlignment.Center;
this.gridGroupingControl.Appearance.GroupCaptionCell.HorizontalAlignment = GridHorizontalAlignment.Left;

...does it for all cell, but what if I wanted to set a specific column in the group differently?

thx

Administrator [Syncfusion]
Replied On September 21, 2006 04:49 AM UTC

Hi James,

Use GridColumnDescriptor.Appearance to change the alignment of the particular column. Below is a code snippet to change appearance of the column in a grid.

//For Main Table

this.grid.TableDescriptor.Columns["ColName"].Appearance.GroupCaptionSummaryCell.HorizontalAlignment = GridHorizontalAlignment.Center;
this.grid.TableDescriptor.Columns["ColName"].Appearance.GroupCaptionCell.HorizontalAlignment = GridHorizontalAlignment.Left;

//For any table....
GridTableDescriptor gd = this.grid.GetTableDescriptor("MyTable"); //Code

gd.Columns["ColName"].Appearance.GroupCaptionSummaryCell.HorizontalAlignment = GridHorizontalAlignment.Center;
gd.Columns["ColName"].Appearance.GroupCaptionCell.HorizontalAlignment = GridHorizontalAlignment.Left;

Thanks,
Haneef

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

;