System.Web.UI.WebControls.BaseDataList.OnDataBinding Method

Raises the System.Web.UI.Control.DataBinding event of a System.Web.UI.WebControls.BaseDataList control.

Syntax

protected override void OnDataBinding (EventArgs e)

Parameters

e
An EventArgs that contains the event data.

Remarks

The System.Web.UI.Control.DataBinding event is raised when data is bound to the System.Web.UI.WebControls.BaseDataList control. This method notifies the control to perform any data-binding logic that is associated with it.

Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.

The BaseDataList.OnDataBinding(EventArgs) method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0