DataList::CreateControlStyle Method ()
.NET Framework (current version)
Creates the default style object that is used internally by the DataList control to implement all style related properties.
Assembly: System.Web (in System.Web.dll)
Return Value
Type: System.Web.UI.WebControls::Style^A TableStyle that contains the default style properties for the control.
The CreateControlStyle method is used primarily by control developers in deriving a custom implementation from the DataList control.
The following code example demonstrates how to override the CreateControlStyle method in a custom server control so that it always displays horizontal grid lines with no cell spacing in the DataList control.
.NET Framework
Available since 1.1
Available since 1.1
Show: