Category / Section
How to customize appearance of the grid in WinForms GridControl?
1 min read
In order to change the appearance of the grid cells, the Font property can be used to set the desired style values. The text color and orientation of the text can be set by using the TextColor and Orientation properties of the Font property.
C#
//Changes the font properties of the header cell. gridControl1[3, 3].Font.Italic = true; gridControl1[3, 3].Font.Bold = true; gridControl1[3, 3].Font.Orientation = 270; //Changes the Text Color and Text of the header cell. gridControl1[3, 3].TextColor = Color.Red; gridControl1[3, 3].Text = "Sample";
VB
'Changes the font properties of the header cell. gridControl1(3, 3).Font.Italic = True gridControl1(3, 3).Font.Bold = True gridControl1(3, 3).Font.Orientation = 270 'Changes the Text Color and Text of the header cell. gridControl1(3, 3).TextColor = Color.Red gridControl1(3, 3).Text = "Sample"
Screenshot
Samples:
C#: Appearance_CS
VB: Appearance_VB
Reference link: https://help.syncfusion.com/windowsforms/grid-control/appearance-and-formatting