BaseDataBoundControlDesigner.OnDataSourceChanged(Boolean) 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.
Called when the data source of the associated BaseDataBoundControl object changes.
protected:
virtual void OnDataSourceChanged(bool forceUpdateView);
protected virtual void OnDataSourceChanged (bool forceUpdateView);
abstract member OnDataSourceChanged : bool -> unit
override this.OnDataSourceChanged : bool -> unit
Protected Overridable Sub OnDataSourceChanged (forceUpdateView As Boolean)
Parameters
- forceUpdateView
- Boolean
true
to force the update of design-time markup; otherwise, false
.
Remarks
The OnDataSourceChanged method connects to the current data source. If the current data source is different from the data source to which the control was previously connected, or forceUpdateView
is true
, the associated control is redrawn on the design surface.
Notes to Inheritors
Override the OnDataSourceChanged(Boolean) method to perform additional actions that are required when the data source of the associated control changes.
If you override the OnDataSourceChanged(Boolean) method, call the base implementation before performing other processing.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기