DetailsView.EnsureDataBound Method

Definition

Calls the DataBind() method after verifying that the data listing control requires data binding and that a valid data source control is specified.

C#
protected override void EnsureDataBound();

Remarks

The data binding does not occur if the DetailsView control is in Insert mode.

Notes to Inheritors

When extending the DetailsView class, you can override this method to implement additional processing before the control is data-bound.

Applies to

Produkt Verzie
.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