NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataGrid.ParentRowsBackColor

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);

Property Value

A Color that represents the color of parent rows. The default is the system color for controls (SystemColors.Control).

Example [Visual Basic]

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

See Also

DataGrid Class | DataGrid Members | System.WinForms Namespace