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

Font of dropdown grid

3 Answers 131 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Konstantin Golovchenko
Top achievements
Rank 1
Konstantin Golovchenko asked on 23 Mar 2011, 03:56 PM

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.

3 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 26 Mar 2011, 06:44 PM
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
0
Konstantin
Top achievements
Rank 1
answered on 28 Mar 2011, 04:15 PM
Thank you. That helped.
0
Richard Slade
Top achievements
Rank 2
answered on 28 Mar 2011, 04:20 PM
You're welcome. Glad I could be of help
Richard
Tags
MultiColumn ComboBox
Asked by
Konstantin Golovchenko
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Konstantin
Top achievements
Rank 1
Share this question
or