System.Web.UI.WebControls.DetailsView.ModeChanged Event

Occurs when a System.Web.UI.WebControls.DetailsView control attempts to change between edit, insert, and read-only mode, but after the DetailsView.CurrentMode property is updated.

Syntax

public event EventHandler ModeChanged

Remarks

The DetailsView.ModeChanged event is raised when a System.Web.UI.WebControls.DetailsView control attempts to change between edit, insert, and read-only mode, but after the DetailsView.CurrentMode property is updated. This allows you to provide an event handler that performs a custom routine, such as synchronizing the System.Web.UI.WebControls.DetailsView control with another control, whenever this event occurs.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0