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);
true if the the caption is visible; otherwise, false. The default is true.
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
DataGrid Class | DataGrid Members | System.WinForms Namespace