FormViewRow.RowType 屬性

定義

取得 FormViewRow 物件的資料列型別。

public:
 virtual property System::Web::UI::WebControls::DataControlRowType RowType { System::Web::UI::WebControls::DataControlRowType get(); };
public virtual System.Web.UI.WebControls.DataControlRowType RowType { get; }
member this.RowType : System.Web.UI.WebControls.DataControlRowType
Public Overridable ReadOnly Property RowType As DataControlRowType

屬性值

其中一個 DataControlRowType 值。

備註

RowType使用 屬性來判斷物件所代表的資料列 FormViewRow 類型。 下表列出不同的資料列類型值。

資料列類型 描述
DataControlRowType.DataRow 控制項中的資料 FormView 列。
DataControlRowType.EmptyDataRow 控制項中的 FormView 空白資料列。 當沒有要顯示的記錄時,空白的資料列會顯示在 FormView 控制項中。
DataControlRowType.Footer 控制項中的 FormView 頁尾資料列。
DataControlRowType.Header 控制項中的 FormView 標頭資料列。
DataControlRowType.Pager 控制項中的 FormView 呼叫器資料列。
DataControlRowType.Separator 控制項中的 FormView 分隔符號資料列。

這個屬性通常用來判斷資料列的類型,再執行作業。

適用於

另請參閱