NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataGrid.HeaderFont

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);

Property Value

A Font that represents the column header font.

Example [Visual Basic]

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

See Also

DataGrid Class | DataGrid Members | System.WinForms Namespace