GridLinesVisibility Property
Collapse the table of content
Expand the table of content

DataGrid.GridLinesVisibility Property


Gets or sets a value that indicates which grid lines are shown.

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

public DataGridGridLinesVisibility GridLinesVisibility { get; set; }

Property Value

Type: System.Windows.Controls.DataGridGridLinesVisibility

One of the enumeration values that specifies which grid lines are shown in the DataGrid. The registered default is All. For more information about what can influence the value, see DependencyProperty.

This property specifies whether the lines that separate rows and columns are visible. The appearance of the lines when they are visible is specified by the VerticalGridLinesBrush and HorizontalGridLinesBrush properties.

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