Gets or sets the background color of parent rows.
[Visual Basic] Public Property ParentRowsBackColor As Color [C#] public Color ParentRowsBackColor {get; set;} [C++] public: __property Color get_ParentRowsBackColor(); public: __property void set_ParentRowsBackColor(Color); [JScript] public function get ParentRowsBackColor() : Color; public function set ParentRowsBackColor(Color);
A Color that represents the color of parent rows. The default is the system color for controls (SystemColors.Control).
The following example sets the ParentRowsBackColor property to a new color.
[Visual Basic]
Private Sub SetParentRowBackClr(ByVal myGrid As DataGrid) myGrid.ParentRowsBackColor = System.Drawing.Color.Beige End Sub
DataGrid Class | DataGrid Members | System.WinForms Namespace