DetailsView::EnsureDataBound Method ()


This API supports the product infrastructure and is not intended to be used directly from your code.

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

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

virtual void EnsureDataBound() override

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.

.NET Framework
Available since 2.0
Return to top