Share via


WinFormsDataBindingHelper Class

Class to help ease common operations in WinForms databinding.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Modeling.Design.WinFormsDataBindingHelper

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class WinFormsDataBindingHelper
public static class WinFormsDataBindingHelper
[ExtensionAttribute]
public ref class WinFormsDataBindingHelper abstract sealed
[<AbstractClass>]
[<Sealed>]
type WinFormsDataBindingHelper =  class end
public final class WinFormsDataBindingHelper

The WinFormsDataBindingHelper type exposes the following members.

Properties

  Name Description
Public propertyStatic member NullMagicValue Magic value for a null choice in a bound list.

Top

Methods

  Name Description
Public methodStatic member InitializeComboBoxColumnDataSourcesFromBinding Set up the combobox dropdown lists for the given grid.
Public methodStatic member InitializeDataSourceFromBinding Initialize the dropdown list for a ComboBox using the values of the enumeration it is bound to.
Public methodStatic member InitializeDataSources Walk all of the controls in the container initializing the DataSource dropdown lists for any that are Databound to items where the values can be calculated.
Public methodStatic member PreInitializeComboBoxColumnDataSourcesFromBinding Set up the cell type for combobox dropdown lists for the given grid.
Public methodStatic member PreInitializeDataSources 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.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling.Design Namespace