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!

DataGridColumn.ForeColor

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

Property Value

A Color that represents the foreground color. The default is the foreground color of the DataGrid control.

Remarks

The OnPropertyChanged event occurs when the property value changes.

Example [Visual Basic]

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

See Also

DataGridColumn Class | DataGridColumn Members | System.WinForms Namespace | AlternatingBackColor | BackColor | GetBackColor