DataGrid.ParentRowsBackColor Property


Gets or sets the background color of parent rows.

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

public Color ParentRowsBackColor { get; set; }

Property Value

Type: System.Drawing.Color

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

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

Private Sub SetParentRowBackClr(ByVal myGrid As DataGrid)
   myGrid.ParentRowsBackColor = System.Drawing.Color.Beige
End Sub

.NET Framework
Available since 1.1
Return to top