Raises the DataList.ItemCreated 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.OnItemCreated(DataListItemEventArgs) method to provide a custom handler for the DataList.ItemCreated event.
The DataList.ItemCreated event is raised when an item in the System.Web.UI.WebControls.DataList control is created, both during round-trips and at the time data is bound to the control.
The DataList.ItemCreated event is commonly used to control the content and appearance of a row in the System.Web.UI.WebControls.DataList control.
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.OnItemCreated(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.