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

Customizing Extra Section added thru custom engine

Thread ID:





52727 Dec 3,2006 05:56 AM UTC Dec 4,2006 05:54 AM UTC WinForms 1
Tags: Grouping
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.

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