DataGrid for WPF and Silverlight Overview > DataGrid Features > DataGrid Appearance > Table Formatting Options > Setting Grid Line Visibility |
By default vertical and horizontal grid lines are visible in the grid. However, if you choose, you can set one or both sets of grid lines to be hidden by setting the GridLinesVisibility property. You can set the GridLinesVisibility property to one of the following options:
Option | Description |
---|---|
None | Neither horizontal nor vertical grid lines are visible in the grid. |
Horizontal | Only horizontal grid lines are visible in the grid. |
Vertical | Only vertical grid lines are visible in the grid. |
All (Default) | Both horizontal and vertical grid lines are visible in the grid. |