System.Web.UI.WebControls.EditCommandColumn.CausesValidation Property

Gets or sets a value indicating whether validation is performed when an Update button in the System.Web.UI.WebControls.EditCommandColumn object is clicked.

Syntax

[System.ComponentModel.DefaultValue(true)]
public virtual bool CausesValidation { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

By default, page validation is performed when an Update button in a System.Web.UI.WebControls.EditCommandColumn control is clicked. Page validation determines whether the input controls that are associated with a validation control on the page all pass the validation rules that are specified by the validation control.

You can specify or determine whether validation is performed on both the client and the server when an Update button in an System.Web.UI.WebControls.EditCommandColumn control is clicked by using the EditCommandColumn.CausesValidation property. To prevent validation from being performed, set the EditCommandColumn.CausesValidation property to false.

When the value of the EditCommandColumn.CausesValidation property is set to true, you can also use the EditCommandColumn.ValidationGroup property to specify the name of the validation group for which an Update button in the System.Web.UI.WebControls.EditCommandColumn object causes validation.

The value of this property is stored in view state.

Requirements

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