WinFormsDataBindingHelper.PreInitializeDataSources Method
Walk all of the controls in the container pre-initializing the DataSource dropdown lists for any that are Databound to items where the values can be calculated. Must be called before the root item is DataBound to live data.
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaration
Public Shared Sub PreInitializeDataSources ( _
container As Control _
)
public static void PreInitializeDataSources(
Control container
)
public:
static void PreInitializeDataSources(
Control^ container
)
static member PreInitializeDataSources :
container:Control -> unit
public static function PreInitializeDataSources(
container : Control
)
Parameters
- container
Type: System.Windows.Forms.Control
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.