DataGrid::ParentRowsForeColor Property

 

Gets or sets the foreground color of parent rows.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property Color ParentRowsForeColor {
	Color get();
	void set(Color value);
}

Property Value

Type: System.Drawing::Color

A Color that represents the foreground color of parent rows. The default is the WindowText color.

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


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

.NET Framework
Available since 1.1
Return to top
Show: