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.CaptionBackColor

Gets or sets the background color of the caption area.

[Visual Basic]
Public Property CaptionBackColor As Color
[C#]
public Color CaptionBackColor {get; set;}
[C++]
public: __property Color get_CaptionBackColor();
public: __property void set_CaptionBackColor(Color);
[JScript]
public function get CaptionBackColor() : Color;
public function set CaptionBackColor(Color);

Property Value

A Color that represents the caption's background color. The default is the system color for windows (SystemColors.Window).

Example [Visual Basic]

The following example sets the CaptionBackColor property of the DataGrid control.

[Visual Basic]

Private Sub SetCaptionBackClr(ByVal myGrid As DataGrid)
   Set myGrid.CaptionBackColor = System.Drawing.Color.Blue
End Sub

See Also

DataGrid Class | DataGrid Members | System.WinForms Namespace | CaptionForeColor | CaptionFont