DataGrid.ParentRowsBackColor Propriété

Définition

Obtient ou définit la couleur d'arrière-plan des lignes parentes.

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

Valeur de propriété

Color représentant la couleur des lignes parentes. La valeur par défaut est la couleur Control.

Exemples

L’exemple de code suivant définit la ParentRowsBackColor propriété sur une nouvelle couleur.


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

S’applique à