DetailsView.InitializeRow(DetailsViewRow, DataControlField) Method

Definition

Initializes the specified DetailsViewRow object.

C#
protected virtual void InitializeRow(System.Web.UI.WebControls.DetailsViewRow row, System.Web.UI.WebControls.DataControlField field);

Parameters

row
DetailsViewRow

The DetailsViewRow to initialize.

field
DataControlField

The DataControlField that corresponds to the row.

Remarks

The InitializeRow method is a helper method called by the DetailsView control to initialize the specified DetailsViewRow object. The row is initialized for the DataControlField object contained in the field parameter.

Notes to Inheritors

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

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