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

change font of Gridview Filter

1 Answer 83 Views
GridView
This is a migrated thread and some comments may be shown as answers.
manizheh
Top achievements
Rank 1
manizheh asked on 30 Jun 2016, 01:33 PM

How can I change font of filter in radgridview? Actually I want change font of texts like "no filter", "contains","Does not contain","custom", "Null" and ...

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 01 Jul 2016, 08:16 AM
Hi Manizheh,

Thank you for writing.

You can use the ViewCellFormatting event to change the font:
Font font = new Font("Segoe Script", 11, FontStyle.Regular);
private void RadGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    
    if (e.CellElement is GridFilterCellElement)
    {
        var cell = e.CellElement as GridFilterCellElement;
        cell.FilterOperatorText.Font = font;
    }
}

Let me know if I can assist you further.

Regards,
Dimitar
Telerik
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Tags
GridView
Asked by
manizheh
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or