DetailsView.CreateRow(Int32, DataControlRowType, DataControlRowState) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用指定的項目索引、列類型和列狀態建立 DetailsViewRow 物件。
protected:
virtual System::Web::UI::WebControls::DetailsViewRow ^ CreateRow(int rowIndex, System::Web::UI::WebControls::DataControlRowType rowType, System::Web::UI::WebControls::DataControlRowState rowState);
protected virtual System.Web.UI.WebControls.DetailsViewRow CreateRow(int rowIndex, System.Web.UI.WebControls.DataControlRowType rowType, System.Web.UI.WebControls.DataControlRowState rowState);
abstract member CreateRow : int * System.Web.UI.WebControls.DataControlRowType * System.Web.UI.WebControls.DataControlRowState -> System.Web.UI.WebControls.DetailsViewRow
override this.CreateRow : int * System.Web.UI.WebControls.DataControlRowType * System.Web.UI.WebControls.DataControlRowState -> System.Web.UI.WebControls.DetailsViewRow
Protected Overridable Function CreateRow (rowIndex As Integer, rowType As DataControlRowType, rowState As DataControlRowState) As DetailsViewRow
參數
- rowIndex
- Int32
要顯示的資料項目的零為基礎索引。
- rowType
- DataControlRowType
這是其中一項 DataControlRowType 價值。
- rowState
- DataControlRowState
這是其中一項 DataControlRowState 價值。
傳回
DetailsViewRow A 具有指定的項目索引、列類型和列狀態。
備註
這個 CreateRow 方法是控制 DetailsView 項呼叫的輔助方法,用來建立物件 DetailsViewRow 。
給繼承者的注意事項
在擴充 DetailsView 類別時,你可以覆寫這個方法,回傳 DetailsViewRow 一個帶有自訂設定的物件。