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

Default font change between Q2-Q1 2009

3 Answers 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mathieu Roy
Top achievements
Rank 1
Mathieu Roy asked on 07 Oct 2009, 06:49 PM
Hi,

Since I've install release Q2 2009, user complain about the default font on grid. I've never customize it before and it was always correct. Now it seem to be smaller and dont fit with default font of the other controls...

I've try to change font by the radgridview.font property, but no change appear at run time.

How can i fix it to recover the older font that was set by default on Q1 2009?

Thx

3 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 08 Oct 2009, 09:01 AM
Hi Mathieu,

You can restore the old font easily when handling ViewCellFormatting event. Just set e.CellElement.Font property. Here is the code:

Font font = new Font("Tahoma", 9, FontStyle.Regular); 
 
void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e) 
    e.CellElement.Font = font; 

I hope this helps.

Best wishes,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Mathieu Roy
Top achievements
Rank 1
answered on 08 Oct 2009, 11:39 AM
That works perfectly!

To make it looks exactly like before, I used this font :

 

Public Sub radGridView1_ViewCellFormatting(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles dtgGrille.ViewCellFormatting

 

e.CellElement.Font =

New Font("Microsoft Sans Serif", 8, FontStyle.Regular)

 

 

End Sub

Thx for quick answer, again...

 

0
Jack
Telerik team
answered on 09 Oct 2009, 10:13 AM
Hi Mathieu,

I am glad to hear that. If you have any other questions, please don't hesitate to write us.

Best wishes,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Mathieu Roy
Top achievements
Rank 1
Answers by
Jack
Telerik team
Mathieu Roy
Top achievements
Rank 1
Share this question
or