HeadersVisibility Property
Collapse the table of content
Expand the table of content

DataGrid.HeadersVisibility Property


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

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public DataGridHeadersVisibility HeadersVisibility { get; set; }

Property Value

Type: System.Windows.Controls.DataGridHeadersVisibility

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.

.NET Framework
Available since 4.0
Available since 2.0
Return to top
© 2015 Microsoft