Hello,
I have a winform GridView that I'm having a hard time changing the font size. Here is my code.
private void radGridView1_ViewCellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
{
Font font = new Font("Arial", 20f);
if (e.CellElement is Telerik.WinControls.UI.GridFilterCellElement)
{
((Telerik.WinControls.UI.GridViewFilteringRowInfo)e.CellElement.RowInfo).Height = 40;
e.CellElement.DrawFill = true;
e.CellElement.NumberOfColors = 1;
e.CellElement.BackColor = Color.Beige;
e.CellElement.Font = font;
}
I have also attached a screen-shot of my issue. Basically this changes the font size of the filter row, when the user is not in a cell typing something. But when I try to filter a column and set focus to that specific filter cell, i get a textbox in front of the "big" text with the normal 8.25 point font. What am I doing wrong?
Thanks,
Lu
I have a winform GridView that I'm having a hard time changing the font size. Here is my code.
private void radGridView1_ViewCellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
{
Font font = new Font("Arial", 20f);
if (e.CellElement is Telerik.WinControls.UI.GridFilterCellElement)
{
((Telerik.WinControls.UI.GridViewFilteringRowInfo)e.CellElement.RowInfo).Height = 40;
e.CellElement.DrawFill = true;
e.CellElement.NumberOfColors = 1;
e.CellElement.BackColor = Color.Beige;
e.CellElement.Font = font;
}
I have also attached a screen-shot of my issue. Basically this changes the font size of the filter row, when the user is not in a cell typing something. But when I try to filter a column and set focus to that specific filter cell, i get a textbox in front of the "big" text with the normal 8.25 point font. What am I doing wrong?
Thanks,
Lu