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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για