Raises the System.Web.UI.Control.DataBinding event of a System.Web.UI.WebControls.BaseDataList control.
- e
- An EventArgs that contains the event data.
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.