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)
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 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.