Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GridViewUpdatedEventArgs::KeepInEditMode Property

 

Gets or sets a value that indicates whether the GridView control should remain in edit mode after an update operation.

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

public:
property bool KeepInEditMode {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if the control will remain in edit mode after an update operation; otherwise, false. The default is false.

By default, the GridView control returns to read-only mode after an update operation. To keep the GridView control in edit mode, set the KeepInEditMode property to true.

The following example shows how to keep a GridView control in edit mode when an exception occurs.

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

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft