System.Web.UI.WebControls Namespace DetailsView Class
.NET Framework version 2.0
Occurs when the DetailsView control switches between edit, insert, and read-only mode, but after the mode has changed.
[ VB ]
Public Event ModeChanged As EventHandler
[ C# ]
public event EventHandler ModeChanged;
[ C++ ]
public: __event EventHandler* ModeChanged;
In [ JScript ], you can handle the events defined by a class, but you cannot define your own.
The ModeChanged event is raised whenever the DetailsView control switches 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 configuring the DetailsView control for a specific mode or canceling the mode change, whenever this event occurs.
DetailsView Members ModeChanging