Change Header Font Dynamically

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

1 Reply

AB Ajay Bhalegar 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

Loader.
Up arrow icon