DetailsView.CreateChildControls(IEnumerable, Boolean) 메서드

정의

DetailsView 컨트롤을 렌더링하는 데 사용할 컨트롤 계층 구조를 만듭니다.

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 컨트롤의 데이터 소스를 나타내는 DetailsView입니다.

dataBinding
Boolean

데이터 바인딩을 하는 동안 이 메서드가 호출됨을 나타내는 경우 true이고, 그렇지 않으면 false입니다.

반환

Int32

데이터 소스의 항목 수입니다.

예외

dataSource가 null DataSourceView를 반환하는 경우

또는

dataSourceICollection이 아니고 총 행 수를 반환할 수 없는 경우

또는

dataBindingfalse이고 dataSourceICollection 인터페이스를 구현하지 않는 경우

또는

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

설명

CreateChildControls 메서드는 컨트롤에 대한 컨트롤 계층 구조를 만들기 위해 컨트롤에서 호출 DetailsView 하는 도우미 메서드입니다.

상속자 참고

클래스를 확장할 때 이 메서드를 재정의 DetailsView 하여 고유한 컨트롤 계층 구조를 만들 수 있습니다.

적용 대상

추가 정보