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

Change Header Font Dynamically

Thread ID:





47076 Jul 27,2006 02:38 PM UTC Jul 27,2006 03:37 PM UTC WinForms 1
Tags: Grouping
Ajay Bhalegar
Asked On July 27, 2006 02:38 PM UTC


I want to change the header font in a grid grouping control dynamically.I am able to change cell text font but not the header font.

Is there any way?
I am using Sync fusion ver

Thanks & Regards

Ajay Bhalegar
Replied On July 27, 2006 03:37 PM UTC


I am able to solve the problem using below code

// mStandardFont - is dynamically allocated
// using Font Dialog box.

GridGroupingControl decorate;

GridFontInfo mGridFont = new GridFontInfo();
mGridFont.Facename = mStandardFont.FontFamily.Name;
mGridFont.Size = mStandardFont.Size;

//For Header Text in a grid.
decorate.Appearance.AnyHeaderCell.Font = mGridFont;

//For Group Font
decorate.GridGroupDropArea.Font = mStandardFont;

//For Grid Text
decorate.Font = mStandardFont;

Thanks & 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

This page will automatically be redirected to the 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