This is a migrated thread and some comments may be shown as answers.

Change The Grids Fonts

1 Answer 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Leonardi
Top achievements
Rank 1
Leonardi asked on 07 Jan 2008, 10:06 AM
Hi There,

I wonder if anyone knows how to change the Font size for Grid Elements that are being displayed...I been playing around with the properties and seems that it is not working at all...Thanks in advance for your help...

With best regards,
Leonardi

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 07 Jan 2008, 04:44 PM
Hi Leonardi,

Thank you for this question.

You can change the Font property of grid visual elements by modifying the current theme. In order to override the theme settings, change the Font property of a specified element explicitly through code, as shown in the following code snippet:

this.radGridView1.MasterGridViewInfo.TableHeaderRow.VisualElement.Font = new Font("Courier", 12f, FontStyle.Bold);

void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e)
{
    e.CellElement.Font = SystemFonts.SmallCaptionFont;
}


Don't hesitate to contact us if you have other questions.

Best wishes,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Leonardi
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or