FormViewRow.RowState Property

Definition

Gets the state of the FormViewRow object.

C#
public virtual System.Web.UI.WebControls.DataControlRowState RowState { get; }

Property Value

A bitwise combination of the DataControlRowState enumeration values.

Remarks

Use the RowState property to determine the state of the row. The state can be a bitwise combination of the values in the following table.

State value Description
DataControlRowState.Edit The FormViewRow object is in edit mode.
DataControlRowState.Insert The FormViewRow object is in insert mode.
DataControlRowState.Normal The FormViewRow object is in its normal, read-only state.
DataControlRowState.Selected The FormViewRow object is selected.

This property is commonly used to determine the state of a row before performing an operation.

Applies to

Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also