ListBox.GridLinesHorizontal


Warning

This item was deprecated in version 2019r2. Please use DesktopListBox.GridLineStyle as a replacement.

Description

Draws horizontal rules between rows in one of five styles.

Notes

You can use the class constants for Borders to set the gridline styles. They are:

Value

Class Constant

0

BorderDefault

1

BorderNone

2

BorderThinDotted

3

BorderThinSolid

4

BorderThickSolid

5

BorderDoubleThinSolid

Sample code

This example sets the gridlines to Thin Solid. The example is in the Open event of the ListBox.

Me.GridLinesHorizontal = ListBox.BorderThinSolid

Compatibility

All projects types on all supported operating systems.