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

반품

만든 행 수입니다.

예외

dataSource 는 null DataSourceView을 반환합니다.

-또는-

dataSource 는 인터페이스를 ICollection 구현하지 않으며 TotalRowCount.

-또는-

AllowPaging truedataSource 인터페이스를 구현하지 않으며 데이터 원본 페이징을 ICollection 수행할 수 없습니다.

-또는-

dataSource 은 인터페이스를 ICollection 구현하지 않으며 dataBinding .로 설정됩니다 false.

설명

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

메모

이 메서드는 주로 컨트롤 개발자가 컨트롤을 확장하는 GridView 데 사용됩니다.

적용 대상

추가 정보