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

Gets or sets a value that indicates whether the grid's caption is visible.

[Visual Basic]
Public Property CaptionVisible As Boolean
[C#]
public bool CaptionVisible {get; set;}
[C++]
public: __property bool get_CaptionVisible();
public: __property void set_CaptionVisible(bool);
[JScript]
public function get CaptionVisible() : Boolean;
public function set CaptionVisible(Boolean);

Property Value

true if the the caption is visible; otherwise, false. The default is true.

Remarks

Example [Visual Basic]

The following example toggles the CaptionVisible property.

[Visual Basic]

Private Sub ToggleCaptionVisible(ByVal myGrid As DataGrid)
   ' Toggle the CaptionVisibleProperty.
   myGrid.CaptionVisible = myGrid.CaptionVisible Xor True
End Sub

See Also

DataGrid Class | DataGrid Members | System.WinForms Namespace