Back to Devexpress

GridOptionsView.ShowHorizontalLines Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsview-33c1d910.md

latest2.8 KB
Original Source

GridOptionsView.ShowHorizontalLines Property

Gets or sets whether to display horizontal 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 ShowHorizontalLines { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
<XtraSerializableProperty>
Public Overridable Property ShowHorizontalLines As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

A DefaultBoolean value that specifies if horizontal 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 ShowHorizontalLines
GridView

.OptionsView .ShowHorizontalLines

|

Remarks

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

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

See Also

ShowVerticalLines

GridOptionsView Class

GridOptionsView Members

DevExpress.XtraGrid.Views.Grid Namespace