Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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
© 2016 Microsoft