ListView.BorderStyle ListView.BorderStyle ListView.BorderStyle ListView.BorderStyle Property

Definition

Overrides the BorderStyle property. Setting this property is not supported by the ListView control.

public:
 virtual property System::Web::UI::WebControls::BorderStyle BorderStyle { System::Web::UI::WebControls::BorderStyle get(); void set(System::Web::UI::WebControls::BorderStyle value); };
[System.ComponentModel.Browsable(false)]
public override System.Web.UI.WebControls.BorderStyle BorderStyle { get; set; }
member this.BorderStyle : System.Web.UI.WebControls.BorderStyle with get, set
Public Overrides Property BorderStyle As BorderStyle

Property Value

NotSet, which indicates that the property is not set.

Exceptions

Remarks

Style properties are not supported by the ListView control. If you try to set the BorderStyle property, a NotSupportedException exception is thrown. If you get the property, it returns the default value of the corresponding property of the base class.

To style the ListView control, you must style the controls inside the ListView templates by using cascading style sheets (CSS) classes or inline style elements.

Applies to

See also