Export (0) Print
Expand All

ToolStrip.BindingContext Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets the binding context for the ToolStrip.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public override BindingContext BindingContext { get; set; }
/** @property */
public BindingContext get_BindingContext ()

/** @property */
public void set_BindingContext (BindingContext value)

public override function get BindingContext () : BindingContext

public override function set BindingContext (value : BindingContext)

Property Value

A BindingContext for the ToolStrip.

The BindingContext of a ToolStrip returns a single BindingManagerBase for all data-bound controls contained by the ToolStrip. The BindingManagerBase keeps all controls that are bound to the same data source synchronized. For example, setting the Position property of the BindingManagerBase specifies the item in the underlying list that all data-bound controls point to.

For more information about creating a new BindingContext and assigning it to the BindingContext property, see the BindingContext constructor.

Notes to Inheritors When overriding the BindingContext property in a derived class, use the base class's BindingContext property to extend the base implementation. Otherwise, you must provide all the implementation. You are not required to override both the get and set accessors of the BindingContext property; you can override only one, if needed.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft