DetailsView Events
.NET Framework 3.0
| Name | Description | |
|---|---|---|
| DataBinding | Occurs when the server control binds to a data source. (inherited from Control) |
| DataBound | Occurs after the server control binds to a data source. (inherited from BaseDataBoundControl) |
| 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) |
| Init | Occurs when the server control is initialized, which is the first step in its lifecycle. (inherited from Control) |
| ItemCommand | Occurs when a button within a DetailsView control is clicked. |
| ItemCreated | Occurs when a record is created in a DetailsView control. |
| ItemDeleted | Occurs when a Delete button within a DetailsView control is clicked, but after the delete operation. |
| ItemDeleting | Occurs when a Delete button within a DetailsView control is clicked, but before the delete operation. |
| ItemInserted | Occurs when an Insert button within a DetailsView control is clicked, but after the insert operation. |
| ItemInserting | Occurs when an Insert button within a DetailsView control is clicked, but before the insert operation. |
| ItemUpdated | Occurs when an Update button within a DetailsView control is clicked, but after the update operation. |
| ItemUpdating | Occurs when an Update button within a DetailsView control is clicked, but before the update operation. |
| Load | Occurs when the server control is loaded into the Page object. (inherited from Control) |
| ModeChanged | Occurs when a DetailsView control attempts to change between edit, insert, and read-only mode, but after the CurrentMode property is updated. |
| ModeChanging | Occurs when a DetailsView control attempts to change between edit, insert, and read-only mode, but before the CurrentMode property is updated. |
| PageIndexChanged | Occurs when the value of the PageIndex property changes after a paging operation. |
| PageIndexChanging | Occurs when the value of the PageIndex property changes before a paging operation. |
| PreRender | Occurs after the Control object is loaded but prior to rendering. (inherited from Control) |
| Unload | Occurs when the server control is unloaded from memory. (inherited from Control) |
Reference
DetailsView ClassSystem.Web.UI.WebControls Namespace
IsPrimitive
AccessDataSource
DetailsView.AllowPaging Property
DetailsView.AutoGenerateRows Property
DetailsView.AutoGenerateDeleteButton Property
DetailsView.AutoGenerateEditButton Property
DetailsView.AutoGenerateInsertButton Property
DetailsView.Fields Property
DetailsView.Rows Property
BoundField
ButtonField
CommandField
CheckBoxField
GridView
HyperLinkField
SqlDataSource
TemplateField
Other Resources
ASP.NET Data Source Control ParametersData Source Controls Overview
ASP.NET Data Access Overview
Community Additions
ADD
Show: