FormViewRow.RowType Egenskap

Definition

Hämtar radtypen för FormViewRow objektet.

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

Egenskapsvärde

Ett av DataControlRowType värdena.

Kommentarer

Använd egenskapen RowType för att fastställa vilken typ av rad objektet FormViewRow representerar. I följande tabell visas de olika radtypsvärdena.

Radtyp Description
DataControlRowType.DataRow Dataraden FormView i kontrollen.
DataControlRowType.EmptyDataRow Den tomma dataraden FormView i kontrollen. Den tomma dataraden visas i en FormView kontroll när det inte finns några poster att visa.
DataControlRowType.Footer Sidfotsraden FormView i kontrollen.
DataControlRowType.Header Rubrikraden FormView i kontrollen.
DataControlRowType.Pager En sidsökarrad i FormView kontrollen.
DataControlRowType.Separator En avgränsarrad i FormView kontrollen.

Den här egenskapen används ofta för att fastställa en rads typ innan du utför en åtgärd.

Gäller för

Se även