System.Web.UI.WebControls.AutoGeneratedFieldProperties Class

Represents the properties of an System.Web.UI.WebControls.AutoGeneratedField object. This class cannot be inherited.

See Also: AutoGeneratedFieldProperties Members

Syntax

public sealed class AutoGeneratedFieldProperties : System.Web.UI.IStateManager

Remarks

The System.Web.UI.WebControls.AutoGeneratedFieldProperties class is used by data-bound controls to specify the properties of an System.Web.UI.WebControls.AutoGeneratedField object when creating an automatically generated field. For example, when the System.Web.UI.WebControls.DetailsView control creates an automatically generated row, it creates an System.Web.UI.WebControls.AutoGeneratedFieldProperties object with the row's properties and passes it to the DetailsView.CreateAutoGeneratedRow(AutoGeneratedFieldProperties) method. Likewise, the System.Web.UI.WebControls.GridView control passes an System.Web.UI.WebControls.AutoGeneratedFieldProperties object to the GridView.CreateAutoGeneratedColumn(AutoGeneratedFieldProperties) method when creating an automatically generated column.

Note:

This class is typically used only when extending the System.Web.UI.WebControls.GridView or System.Web.UI.WebControls.DetailsView control.

You can specify the name of the field to bind to an System.Web.UI.WebControls.AutoGeneratedField object by setting the AutoGeneratedFieldProperties.DataField property. To specify the data type of the field values, set the AutoGeneratedFieldProperties.Type property. You can prevent users from modifying the field values by setting the AutoGeneratedFieldProperties.IsReadOnly property to true. You can also assign a name to an System.Web.UI.WebControls.AutoGeneratedField object by setting the AutoGeneratedFieldProperties.Name property.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0