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

Changing All Font Size in Grid

1 Answer 533 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 04 Mar 2014, 09:27 PM
Hi All,

I am attempting to make the font size of all text in the RadGrid smaller.  I have tried the following:

RadGrid.MasterTableView.Font.Size = FontUnit.XXSmall;

This appears to only affect the column headers.  Does anyone have any suggestions?

Thanks,
Mark

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Mar 2014, 03:10 AM
Hi Mark,

You can set the Font-Size in the ASPX page like shown below:

ASPX:
<MasterTableView Font-Size="XX-Small">

Or if you want it from code behind you can use the PreRender event of the RadGrid.

C#:
protected void RadGrid1_PreRender(object sender, EventArgs e)
{
  RadGrid1.MasterTableView.Font.Size = FontUnit.XXSmall;
}

Thanks,
Shinu
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or