System.Web.UI.WebControls.FormView.ModeChanged Event

Occurs when the System.Web.UI.WebControls.FormView control switches between edit, insert, and read-only mode, but after the mode has changed.

Syntax

public event EventHandler ModeChanged

Remarks

The FormView.ModeChanged event is raised when a System.Web.UI.WebControls.FormView control attempts to switch between edit, insert, and read-only mode, but after the mode actually changes. This allows you to provide an event-handling method that performs a custom routine, such as synchronizing the System.Web.UI.WebControls.FormView 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