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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Customizing Extra Section added thru custom engine

Thread ID:

Created:

Updated:

Platform:

Replies:

52727 Dec 3,2006 05:56 AM UTC Dec 4,2006 05:54 AM UTC Windows Forms 1
loading
Tags: Grouping
james
Asked On December 3, 2006 05:56 AM UTC

I have add an extra section thru my custom engine ( this.Sections.Add(new ExtraSection(this));). I would like to customize the extra section using something similar to the like this for the GroupCaptionCell...

this.gridGroupingControl1.Appearance.GroupCaptionCell.CellType = "Static";

// set caption and header row height
this.gridGroupingControl1.TableOptions.CaptionRowHeight = this.gridGroupingControl1.TableOptions.RecordRowHeight;
this.gridGroupingControl1.TableOptions.ColumnHeaderRowHeight = this.gridGroupingControl1.TableOptions.RecordRowHeight;
this.gridGroupingControl1.Appearance.SummaryEmptyCell.HorizontalAlignment = GridHorizontalAlignment.Center;
this.gridGroupingControl1.Appearance.SummaryEmptyCell.Borders.All = new GridBorder(GridBorderStyle.Standard);

but I can't seem to find the type in VS intellisense.

Administrator [Syncfusion]
Replied On December 4, 2006 05:54 AM UTC

Hi James,

You can handle the QueryCellStyleInfo event to change the Appearance of the ExtraSection cells in a grid. Here is a code snippet to show this.

private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
Element el = e.TableCellIdentity.DisplayElement;
if (el is ExtraSection)
{
e.Style.CellType = "Header";
e.Style.Text = "ExtraSectionCell";
e.Style.Font = new GridFontInfo(new Font(e.Style.GdipFont ,FontStyle.Bold));
}
}

Please refer to the attached sample for implementation.
GGCExtraSectionCaption.zip

Best Regards,
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

;