I have one DataGridViewand want the title text in bold. I tried changing ColumnHeaderDefaultCellStyleto
DataGridViewCellStyle { BackColor=Color [Control], SelectionBackColor=Color [Highlight], SelectionForeColor=Color [HighlightText], Font=[Font: Name=Tahoma, Size=9.75, Units=3, GdiCharSet=0, GdiVerticalFont=False], WrapMode=True, Alignment=MiddleCenter }
In the designer, I see the Headers as Bold, but at runtime it shows as usual. Please do not forget that apart from ColumnHeaderDefaultCellStyleme, I also change
DefaultCellStyle DataGridView, as well as individual columns.
How to make headlines bold?
source
share