System.Web.UI.WebControls.DetailsView.EnsureDataBound Method

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

Syntax

protected override void EnsureDataBound ()

Remarks

The data binding does not occur if the System.Web.UI.WebControls.DetailsView control is in Insert mode.

Requirements

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