System.Windows.Forms.ListView.GridLines Property

Gets or sets a value indicating whether grid lines appear between the rows and columns containing the items and subitems in the control.

Syntax

[System.ComponentModel.DefaultValue(false)]
public bool GridLines { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The ListView.GridLines property has no effect unless the ListView.View property of the System.Windows.Forms.ListView control is set to View.Details. The ListView.GridLines property allows you to display lines to identify the rows and columns that are displayed in the System.Windows.Forms.ListView control when it displays items and their subitems. The grid lines that are displayed do not provide the ability to resize rows and columns as an application such as Microsoft Excel does. Only columns can be resized, if column headers are displayed, by moving the mouse pointer to the right side of the column to resize and then clicking and dragging until the column is the size you want. The grid lines feature is used to provide the user of the control with visible boundaries around items and subitems.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0