Gets or sets the foreground color of the column.
[Visual Basic] Overridable Public Property ForeColor As Color [C#] public Color ForeColor {virtual get; virtual set;} [C++] public: __property virtual Color get_ForeColor(); public: __property virtual void set_ForeColor(Color); [JScript] public function get ForeColor() : Color; public function set ForeColor(Color);
A Color that represents the foreground color. The default is the foreground color of the DataGrid control.
The OnPropertyChanged event occurs when the property value changes.
The following example sets the ForeColor property of a given DataGridColumn.
[Visual Basic]
Dim c As System.Drawing.Color Dim dgCol As DataGridColumn c = System.Drawing.CadetBlue Set dgCol = DataGrid1.GridColumns(0) dgCol.ForeColor = c
DataGridColumn Class | DataGridColumn Members | System.WinForms Namespace | AlternatingBackColor | BackColor | GetBackColor