Share via


DataGrid.ParentRowsBackColor Özellik

Tanım

Üst satırların arka plan rengini alır veya ayarlar.

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

Özellik Değeri

Color Üst satırların rengini temsil eden bir. Varsayılan değer renktir Control .

Örnekler

Aşağıdaki kod örneği özelliği yeni bir renge ayarlar ParentRowsBackColor .


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

Şunlara uygulanır