System.Web.UI.WebControls.GridViewRow.RowType Property

Gets the row type of the System.Web.UI.WebControls.GridViewRow object.

Syntax

public virtual DataControlRowType RowType { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the GridViewRow.RowType property to determine the type of row that the System.Web.UI.WebControls.GridViewRow object represents. The following table lists the different row type values using the System.Web.UI.WebControls.DataControlRowType enumeration.

DataControlRowType.DataRow

A data row in the System.Web.UI.WebControls.GridView control.

DataControlRowType.Footer

The footer row in the System.Web.UI.WebControls.GridView control.

DataControlRowType.Header

The header row in the System.Web.UI.WebControls.GridView control.

DataControlRowType.EmptyDataRow

The empty row in the System.Web.UI.WebControls.GridView control. The empty row is displayed when System.Web.UI.WebControls.GridView control does not have any records to display.

DataControlRowType.Pager

A pager row in the System.Web.UI.WebControls.GridView control.

DataControlRowType.Separator

A separator row in the System.Web.UI.WebControls.GridView control.

This property is commonly used to determine a row's type before performing an operation.

Requirements

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