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:

Created:

Updated:

Platform:

Replies:

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

Hi,

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 3.201.1.0

Thanks & Regards
Ajay

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

Hi,

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.ResetFont();
decorate.Appearance.AnyHeaderCell.Font = mGridFont;

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

//For Grid Text
decorate.Font = mStandardFont;


Thanks & Regards
Ajay

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

;