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);
A Color that represents the foreground color of the grid's column headers. The default is the system color for control text (SystemColors.ControlText).
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
DataGrid Class | DataGrid Members | System.WinForms Namespace | FlatMode | HeaderBackColor