Export (0) Print
Expand All

ListView Events

The ListView type exposes the following members.

  NameDescription
Public event DataBinding Occurs when the server control binds to a data source. (Inherited from Control.)
Public event DataBound Occurs after the server control binds to a data source. (Inherited from BaseDataBoundControl.)
Public event Disposed 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. (Inherited from Control.)
Public event Init Occurs when the server control is initialized, which is the first step in its lifecycle. (Inherited from Control.)
Public event ItemCanceling Occurs when a cancel operation is requested, but before the ListView control cancels the insert or edit operation.
Public event ItemCommand Occurs when a button in a ListView control is clicked.
Public event ItemCreated Occurs when an item is created in a ListView control.
Public event ItemDataBound Occurs when a data item is bound to data in a ListView control.
Public event ItemDeleted Occurs when a delete operation is requested, after the ListView control deletes the item.
Public event ItemDeleting Occurs when a delete operation is requested, but before the ListView control deletes the item.
Public event ItemEditing Occurs when an edit operation is requested, but before the ListView item is put in edit mode.
Public event ItemInserted Occurs when an insert operation is requested, after the ListView control has inserted the item in the data source.
Public event ItemInserting Occurs when an insert operation is requested, but before the ListView control performs the insert.
Public event ItemUpdated Occurs when an update operation is requested, after the ListView control updates the item.
Public event ItemUpdating Occurs when an update operation is requested, but before the ListView control updates the item.
Public event LayoutCreated Occurs when the LayoutTemplate template is created in a ListView control.
Public event Load Occurs when the server control is loaded into the Page object. (Inherited from Control.)
Public event PagePropertiesChanged Occurs when the page properties change, after the ListView control sets the new values.
Public event PagePropertiesChanging Occurs when the page properties change, but before the ListView control sets the new values.
Public event PreRender Occurs after the Control object is loaded but prior to rendering. (Inherited from Control.)
Public event SelectedIndexChanged Occurs when an item's Select button is clicked, after the ListView control handles the select operation.
Public event SelectedIndexChanging Occurs when an item's Select button is clicked, but before the ListView control handles the select operation.
Public event Sorted Occurs when a sort operation is requested, after the ListView control handles the sort operation.
Public event Sorting Occurs when a sort operation is requested, but before the ListView control handles the sort operation.
Public event Unload Occurs when the server control is unloaded from memory. (Inherited from Control.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft