Share via

DataGrid.HeadersVisibility Property


Gets or sets the value that specifies the visibility of the row and column headers.

 property System::Windows::Controls::DataGridHeadersVisibility HeadersVisibility { System::Windows::Controls::DataGridHeadersVisibility get(); void set(System::Windows::Controls::DataGridHeadersVisibility value); };
public System.Windows.Controls.DataGridHeadersVisibility HeadersVisibility { get; set; }
member this.HeadersVisibility : System.Windows.Controls.DataGridHeadersVisibility with get, set
Public Property HeadersVisibility As DataGridHeadersVisibility

Property Value

One of the enumeration values that indicates the visibility of row and column headers. The registered default is All. For more information about what can influence the value, see DependencyProperty.


This property specifies whether the row and column headers are visible. The appearance of the headers when they are visible is specified by the RowHeaderStyle and ColumnHeaderStyle properties.

Applies to