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.

Change Header Font Dynamically

Thread ID:





47076 Jul 27,2006 10:38 AM Jul 27,2006 11:37 AM Windows Forms 1
Tags: Grouping
Ajay Bhalegar
Asked On July 27, 2006 10:38 AM


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 11:37 AM


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.

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.