This documentation is archived and is not being maintained.

DataList Events

The events of the DataList class are listed here. For a complete list of DataList class members, see the DataList Members topic.

Public Events

public eventCancelCommand Occurs when the Cancel button is clicked for an item in the DataList control.
public eventDataBinding (inherited from Control) Occurs when the server control binds to a data source.
public eventDeleteCommand Occurs when the Delete button is clicked for an item in the DataList control.
public eventDisposed (inherited from Control) Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
public eventEditCommand Occurs when the Edit button is clicked for an item in the DataList control.
public eventInit (inherited from Control) Occurs when the server control is initialized, which is the first step in the its lifecycle.
public eventItemCommand Occurs when any button is clicked in the DataList control.
public eventItemCreated Occurs on the server when an item in the DataList control is created.
public eventItemDataBound Occurs when an item is data bound to the DataList control.
public eventLoad (inherited from Control) Occurs when the server control is loaded into the Page object.
public eventPreRender (inherited from Control) Occurs when the server control is about to render to its containing Page object.
public eventSelectedIndexChanged (inherited from BaseDataList) Occurs when a different item is selected in a data listing control between posts to the server.
public eventUnload (inherited from Control) Occurs when the server control is unloaded from memory.
public eventUpdateCommand Occurs when the Update button is clicked for an item in the DataList control.

See Also

DataList Class | System.Web.UI.WebControls Namespace

Show: