ListView.CreateControlStyle Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Creates the default style for the control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

override CreateControlStyle : unit -> Style

Return Value

Type: System.Web.UI.WebControls.Style

The style for the ListView control.

Exception Condition

An attempt was made to invoke the CreateControlStyle method.

Style properties are not supported by the ListView control. If you try to call the CreateControlStyle method, a NotSupportedException exception is thrown.

.NET Framework
Available since 3.5
Return to top