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);
A Color that represents the foreground color of parent rows. The default is the system color for window text (SystemColors.WindowText).
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
DataGrid Class | DataGrid Members | System.WinForms Namespace