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.HeaderForeColor

Gets or sets the foreground color of the grid's headers.

[Visual Basic]
Public Property HeaderForeColor As Color
[C#]
public Color HeaderForeColor {get; set;}
[C++]
public: __property Color get_HeaderForeColor();
public: __property void set_HeaderForeColor(Color);
[JScript]
public function get HeaderForeColor() : Color;
public function set HeaderForeColor(Color);

Property Value

A Color that represents the foreground color of the grid's column headers. The default is the system color for control text (SystemColors.ControlText).

Example [Visual Basic]

The following example sets the foreground color of the grid's column headers.

[Visual Basic]

Private Sub SetHeaderForeClr(ByVal myGrid As DataGrid, ByVal newColor As System.Drawing.Color)
   Set myGrid.HeaderForeColor = newColor
End Sub

See Also

DataGrid Class | DataGrid Members | System.WinForms Namespace | FlatMode | HeaderBackColor