How to show Combo Box items in a different color or bold?

  • Thread starter Thread starter JB
  • Start date Start date
J

JB

Hi All,

I have a DataGridView in which some columns are combo boxes (i.e.
DataGridViewComboBoxColumn). I populate these Combo Boxes directly by
using code like this:

Dim NewCol As New System.Windows.Forms.DataGridViewComboBoxColumn
NewCol.Items.Add("Item 1")
NewCol.Items.Add("Item 2")
NewCol.Items.Add("Item 3")

I'd like to know if there's a way to show some items in a different
color or bold font.

Thanks
JB
 
JB,

With drawing you can do almost everything, be however aware that there are
specialist who do this kind of things.

I don't know your expirience but be aware that this needs often more lines
of code than a complete solution.

Cor
 
JB,

With drawing you can do almost everything, be however aware that there are
specialist who do this kind of things.

I don't know your expirience but be aware that this needs often more lines
of code than a complete solution.

Cor

Hi Cor,

Do you mean that the way to do this is to use owner drawn control or
at least overriding the drawing method(s) on my conbo box control?

Thanks
JB
 
Back
Top