AutoGeneratedField Constructor (String^)
.NET Framework (current version)
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: