GridView.CreateRow 메서드

정의

GridView 컨트롤에 행을 만듭니다.

protected:
 virtual System::Web::UI::WebControls::GridViewRow ^ CreateRow(int rowIndex, int dataSourceIndex, System::Web::UI::WebControls::DataControlRowType rowType, System::Web::UI::WebControls::DataControlRowState rowState);
protected virtual System.Web.UI.WebControls.GridViewRow CreateRow (int rowIndex, int dataSourceIndex, System.Web.UI.WebControls.DataControlRowType rowType, System.Web.UI.WebControls.DataControlRowState rowState);
abstract member CreateRow : int * int * System.Web.UI.WebControls.DataControlRowType * System.Web.UI.WebControls.DataControlRowState -> System.Web.UI.WebControls.GridViewRow
override this.CreateRow : int * int * System.Web.UI.WebControls.DataControlRowType * System.Web.UI.WebControls.DataControlRowState -> System.Web.UI.WebControls.GridViewRow
Protected Overridable Function CreateRow (rowIndex As Integer, dataSourceIndex As Integer, rowType As DataControlRowType, rowState As DataControlRowState) As GridViewRow

매개 변수

rowIndex
Int32

만들 행의 인덱스입니다.

dataSourceIndex
Int32

행에 바인딩할 데이터 소스 항목의 인덱스입니다.

rowType
DataControlRowType

DataControlRowType 값 중 하나입니다.

rowState
DataControlRowState

DataControlRowState 값 중 하나입니다.

반환

GridViewRow

지정된 매개 변수를 사용하여 만든 GridViewRow입니다.

설명

메서드 CreateRow 는 컨트롤에서 GridView 행을 만드는 데 사용됩니다.

참고

이 메서드는 주로 컨트롤 개발자가 확장 된 GridView 제어 합니다. 데이터 바인딩된 GridView 컨트롤은 대상 데이터를 표시하는 데 필요한 행을 자동으로 생성합니다.

적용 대상

추가 정보