DataGrid.ParentRowsBackColor DataGrid.ParentRowsBackColor DataGrid.ParentRowsBackColor DataGrid.ParentRowsBackColor Property

定义

获取或设置父行的背景色。Gets or sets the background color of parent rows.

public:
 property System::Drawing::Color ParentRowsBackColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
public System.Drawing.Color ParentRowsBackColor { get; set; }
member this.ParentRowsBackColor : System.Drawing.Color with get, set
Public Property ParentRowsBackColor As Color

属性值

一个 Color,它代表父行的颜色。A Color that represents the color of parent rows. 默认是 Control 颜色。The default is the Control color.

示例

下面的代码示例将ParentRowsBackColor属性设置为新的颜色。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
      

适用于