AutoGeneratedField Constructor
Initializes a new instance of the AutoGeneratedField class with the specified data field.
Assembly: System.Web (in System.Web.dll)
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.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.