DetailsView.CreateAutoGeneratedRow(AutoGeneratedFieldProperties) Method

Definition

Creates an AutoGeneratedField object that represents an automatically generated row field using the specified field properties.

C#
protected virtual System.Web.UI.WebControls.AutoGeneratedField CreateAutoGeneratedRow(System.Web.UI.WebControls.AutoGeneratedFieldProperties fieldProperties);

Parameters

fieldProperties
AutoGeneratedFieldProperties

An AutoGeneratedFieldProperties that contains the properties for the AutoGeneratedField.

Returns

An AutoGeneratedField that contains the field properties specified by the fieldProperties parameter.

Remarks

The CreateAutoGeneratedRow method is a helper method called by the DetailsView control to create an automatically generated row field using the specified field properties.

Notes to Inheritors

When extending the DetailsView class, you can override this method to create your own automatically generated row field.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also