FormView.ModeChanged Event

 

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

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

member ModeChanged : IEvent<EventHandler,
    EventArgs>

The ModeChanged event is raised when a 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 FormView control with another control, whenever this event occurs.

For more information about handling events, see NIB: Consuming Events.

The following example demonstrates how to use the ModeChanged event to display the current mode in the header row of a FormView control.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: