change font of Gridview Filter

2 posts, 0 answers
  1. manizheh
    manizheh avatar
    3 posts
    Member since:
    Jun 2016

    Posted 30 Jun Link to this post

    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 ...

     

  2. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 01 Jul Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top