AutoGeneratedField Constructor (String^)

 

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
Available since 2.0
Return to top
Show: