GridView.CreateChildControls(IEnumerable, Boolean) 메서드

정의

지정된 데이터 소스를 사용하여 GridView 컨트롤을 렌더링하는 데 사용할 컨트롤 계층 구조를 만듭니다.

protected:
 override int CreateChildControls(System::Collections::IEnumerable ^ dataSource, bool dataBinding);
protected override int CreateChildControls (System.Collections.IEnumerable dataSource, bool dataBinding);
override this.CreateChildControls : System.Collections.IEnumerable * bool -> int
Protected Overrides Function CreateChildControls (dataSource As IEnumerable, dataBinding As Boolean) As Integer

매개 변수

dataSource
IEnumerable

IEnumerable 컨트롤의 데이터 소스가 들어 있는 GridView입니다.

dataBinding
Boolean

자식 컨트롤이 데이터에 바인딩되어 있음을 나타내려면 true이고, 그렇지 않으면 false입니다.

반환

Int32

만든 행의 수입니다.

예외

dataSource가 null DataSourceView를 반환하는 경우

또는 dataSourceICollection 인터페이스를 구현하지 않고 TotalRowCount를 반환할 수 없는 경우

또는 AllowPagingtrue이고 dataSourceICollection 인터페이스를 구현하지 않고 데이터 소스 페이징을 수행할 수 없는 경우

또는 dataSourceICollection 인터페이스를 구현하지 않고 dataBindingfalse로 설정된 경우

설명

CreateChildControls 메서드는 컨트롤의 GridView 컨트롤 계층 구조를 만드는 데 사용됩니다.

참고

이 메서드는 주로 컨트롤 개발자가 확장 된 GridView 제어 합니다.

적용 대상

추가 정보