언어

DetailsView.CreateControlStyle 메서드

정의

컨트롤에 대한 기본 테이블 스타일 개체를 DetailsView 만듭니다.

protected:
 override System::Web::UI::WebControls::Style ^ CreateControlStyle();
protected override System.Web.UI.WebControls.Style CreateControlStyle();
override this.CreateControlStyle : unit -> System.Web.UI.WebControls.Style
Protected Overrides Function CreateControlStyle () As Style

반품

Style 컨트롤의 기본 테이블 스타일이 들어 있는 DetailsView A입니다.

설명

이 CreateControlStyle 메서드는 컨트롤에서 기본 테이블 스타일 개체를 DetailsView 만들기 위해 호출하는 도우미 메서드입니다. 이 메서드는 개체의 TableStyle 기본 스타일 설정 외에도 다음 표의 속성을 설정합니다.

재산 초기 값
GridLines GridLines.Both
CellSpacing 0

상속자 참고

클래스를 확장할 DetailsView 때 사용자 지정 설정이 있는 개체를 반환하도록 이 메서드를 재정의 TableStyle 할 수 있습니다.

적용 대상

참고 항목