Gets or sets a value indicating whether the data grid's row headers are visible.
[Visual Basic] Public Property RowHeadersVisible As Boolean [C#] public bool RowHeadersVisible {get; set;} [C++] public: __property bool get_RowHeadersVisible(); public: __property void set_RowHeadersVisible(bool); [JScript] public function get RowHeadersVisible() : Boolean; public function set RowHeadersVisible(Boolean);
true if the row headers are visible; otherwise false. The default is true.
The following example toggles the RowHeadersVisible property.
[Visual Basic]
Private Sub ToggleRowHeader(ByRef myGrid As DataGrid) myGrid.RowHeadersVisible = myGrid.RowHeadersVisible Xor True End Sub
DataGrid Class | DataGrid Members | System.WinForms Namespace | ParentRowsVisible | RowHeaderWidth | VisibleRowCount | VisibleColumnCount