DetailsViewRow.RowType Egenskap

Definition

Hämtar radtypen för DetailsViewRow 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 DetailsViewRow representerar. I följande tabell visas giltiga radtypsvärden.

Radtyp Description
DataControlRowType.DataRow En datarad i DetailsView kontrollen.
DataControlRowType.EmptyDataRow Den tomma dataraden DetailsView i kontrollen. Den tomma dataraden visas i en DetailsView kontroll när det inte finns några poster att visa.
DataControlRowType.Footer Sidfotsraden DetailsView i kontrollen.
DataControlRowType.Header Rubrikraden DetailsView i kontrollen.
DataControlRowType.Pager En sidsökarrad i DetailsView 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