ListView.BorderStyle Property

 

Gets or sets the border style of the control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public BorderStyle BorderStyle { get; set; }

Property Value

Type: System.Windows.Forms.BorderStyle

One of the BorderStyle values. The default is Fixed3D.

Exception Condition
InvalidEnumArgumentException

The value specified is not one of the BorderStyle values.

You can use the BorderStyle property to change the border style of the ListView control to match the border style settings of other controls on the form. For example, if none of the other controls on your form displays a border, you can set the BorderStyle property of the ListView control to None to match the other controls.

.NET Framework
Available since 1.1
Return to top
Show: