DetailsView.CreateRow(Int32, DataControlRowType, DataControlRowState) 方法

定義

建立使用指定項目索引、資料列型別和資料列狀態的 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

DetailsViewRow,具有指定的項目索引、資料列型別和資料列狀態。

備註

方法是 CreateRow 控制項所呼叫的 DetailsView 協助程式方法,可建立 DetailsViewRow 物件。

給繼承者的注意事項

擴充 DetailsView 類別時,您可以覆寫這個方法,以傳回 DetailsViewRow 具有自訂設定的物件。

適用於

另請參閱