EnableModelValidation Property
TOC
Collapse the table of content
Expand the table of content

GridView::EnableModelValidation Property

.NET Framework (current version)
 

Gets or sets a value that indicates whether a validator control will handle exceptions that occur during insert or update operations.

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

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

Property Value

Type: System::Boolean

true if a validator control will handle exceptions that occur during insert or update operations; otherwise, false. The default is false.

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