Back to Devexpress

GridOptionsView.ShowVerticalLines Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsview-350f7a51.md

latest2.8 KB
Original Source

GridOptionsView.ShowVerticalLines Property

Gets or sets whether to display vertical grid lines.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public virtual DefaultBoolean ShowVerticalLines { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
<XtraSerializableProperty>
Public Overridable Property ShowVerticalLines As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

A DefaultBoolean value that specifies if vertical grid lines are displayed.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ShowVerticalLines
GridView

.OptionsView .ShowVerticalLines

|

Remarks

If the ShowVerticalLines property is set to Default , vertical lines are automatically hidden in specific skins (e.g. Metropolis). In other skins, vertical lines are visible. You can forcibly hide vertical lines by setting the ShowVerticalLines property to False.

Read the following topic for detailed information and examples: Grid Lines and Rounded Corners.

See Also

ShowHorizontalLines

GridOptionsView Class

GridOptionsView Members

DevExpress.XtraGrid.Views.Grid Namespace