Raises the DataList.ItemDataBound event. This allows you to provide a custom handler for the event.
- e
- A System.Web.UI.WebControls.DataListItemEventArgs that contains event data.
Use the DataList.OnItemDataBound(DataListItemEventArgs) method to provide a custom handler for the DataList.ItemDataBound event.
The DataList.ItemDataBound event is raised after an item is data bound to the System.Web.UI.WebControls.DataList control. This event provides you with the last opportunity to access the data item before it is displayed on the client. After this event is raised, the data item is no longer available.
Raising an event invokes the event handler through a delegate. For more information, see How to: Consume Events in a Web Forms Application.
The DataList.OnItemDataBound(DataListItemEventArgs) 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.