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

Gets or sets the foreground color of parent rows.

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

Property Value

A Color that represents the foreground color of parent rows. The default is the system color for window text (SystemColors.WindowText).

Example [Visual Basic]

The following example sets the ParentRowsForeColor property to a new color.

[Visual Basic]

Private Sub SetParentRowsForeClr(ByVal myGrid As DataGrid)
   myGrid.ParentRowsForeColor = System.Drawing.Color.Tomato
End Sub

See Also

DataGrid Class | DataGrid Members | System.WinForms Namespace