ListView.CreateControlStyle Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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)

protected override Style CreateControlStyle()

Return Value

Type: System.Web.UI.WebControls.Style

The style for the ListView control.

Exception Condition
NotSupportedException

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
Show: