This documentation is archived and is not being maintained.

AutoGeneratedField Constructor

Initializes a new instance of the AutoGeneratedField class with the specified data field.

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

public:
AutoGeneratedField(
	String^ dataField
)

Parameters

dataField
Type: System::String
The name of the data field to bind to the AutoGeneratedField.

Use this constructor to initialize a new instance of the AutoGeneratedField class. This constructor is generally used by data-bound controls (such as GridView and DetailsView) when creating automatically generated fields.

The following example demonstrates how to use this constructor to create a new instance of the AutoGeneratedField class when implementing a custom control that derives from the DetailsView control.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: