Font of dropdown grid

4 posts, 1 answers
  1. Konstantin Golovchenko
    Konstantin Golovchenko avatar
    3 posts
    Member since:
    Jul 2009

    Posted 23 Mar 2011 Link to this post

    Hello!

    Is it possible to set the font of the dropdown grid other then default "Segoe UI" ?

    The expected behavior is that the grid must use the same font as RadMultiColumnComboBox.

    The code I tried to use is similar to this:

    RadMultiColumnComboBox combo = new RadMultiColumnComboBox();
    combo.Font =new System.Drawing.Font("Microsoft Sans Serif", 8.25F); 
    combo.EditorControl.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);

    But the dropdown grid still uses Segoe UI Font.

  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 26 Mar 2011 Link to this post

    Hello,

    You just need to set the font for the table element of the grid.
    this.radMultiColumnComboBox1.EditorControl.TableElement.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);

    Hope that helps
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Konstantin
    Konstantin avatar
    4 posts
    Member since:
    Nov 2008

    Posted 28 Mar 2011 Link to this post

    Thank you. That helped.
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 28 Mar 2011 Link to this post

    You're welcome. Glad I could be of help
    Richard
Back to Top