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

Gets or sets the foreground color of the row with focus.

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

Property Value

A Color that represents the foreground color of a selected row. The default is the system color for active window captions (SystemColors.ActiveCaption).

Remarks

The user can select an entire row by clicking its left edge when the pointer becomes an arrow.

Example [Visual Basic]

The following example sets the foreground color of the selected row.

[Visual Basic]

Private Sub SetCurrentRowForeClr(ByVal myGrid As DataGrid, ByVal newColor As NewColor As System.Drawing.Color)
   myGrid.SelectionForeColor = newColor
End Sub

See Also

DataGrid Class | DataGrid Members | System.WinForms Namespace | CurrentCell | SelectionBackColor | SelectionForeColor