Gets or sets the font displayed in the grid's column headers.
[Visual Basic] Public Property HeaderFont As Font [C#] public Font HeaderFont {get; set;} [C++] public: __property Font* get_HeaderFont(); public: __property void set_HeaderFont(Font*); [JScript] public function get HeaderFont() : Font; public function set HeaderFont(Font);
A Font that represents the column header font.
The following example sets the font for the grid's column headers.
[Visual Basic]
Private Sub SetHeaderFont(ByVal myGrid As DataGrid, ByVal newFont As System.Drawing.Font) Set myGrid.HeaderFont = newFont End Sub
DataGrid Class | DataGrid Members | System.WinForms Namespace