BaseDataBoundControl.DataBind Method
이 문서의 내용
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Binds a data source to the invoked server control and all its child controls.
public:
override void DataBind();
public override void DataBind();
override this.DataBind : unit -> unit
Public Overrides Sub DataBind ()
The BaseDataBoundControl class overrides the DataBind method to identify the data source that the data-bound control binds to and builds the appropriate control trees. When resolving the data source, the data source identified by the DataSourceID property takes precedence. If DataSourceID is not set, the object identified by the DataSource property is used.
The DataBind
method is sealed on all ASP.NET data-bound controls derived from BaseDataBoundControl. Data-bound controls derived from the DataBoundControl and HierarchicalDataBoundControl classes should override the PerformDataBinding
method instead of the DataBind method to bind data. If DataBind is overridden, the OnDataBinding and OnDataBound events are raised out of order.
Applies to
제품 | 버전 |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET 피드백
.NET은(는) 오픈 소스 프로젝트입니다. 다음 링크를 선택하여 피드백을 제공해 주세요.