GridView.TagKey 屬性

定義

取得 GridView 控制項的 HtmlTextWriterTag 值。

protected:
 virtual property System::Web::UI::HtmlTextWriterTag TagKey { System::Web::UI::HtmlTextWriterTag get(); };
protected override System.Web.UI.HtmlTextWriterTag TagKey { get; }
member this.TagKey : System.Web.UI.HtmlTextWriterTag
Protected Overrides ReadOnly Property TagKey As HtmlTextWriterTag

屬性值

HtmlTextWriterTag 控制項的 GridView 值。

備註

屬性 TagKey 可讓輸出資料流程撰寫 GridView 控制項的適當 HTML 標籤。 當 屬性 EnableSortingAndPagingCallbacks 設定為 true 時,這個屬性會傳 HtmlTextWriterTag.Div 回 ,否則這個屬性會傳 HtmlTextWriterTag.Table 回 。

給繼承者的注意事項

您可以覆寫這個屬性,以指定要 HtmlTextWriterTag 用於衍生控制項的值。

適用於

另請參閱