Export (0) Print
Expand All

DataBindingHandler.DataBindControl Method

Binds the specified control.

[Visual Basic]
Public MustOverride Sub DataBindControl( _
   ByVal designerHost As IDesignerHost, _
   ByVal control As Control _
public abstract void DataBindControl(
 IDesignerHost designerHost,
 Control control
public: virtual void DataBindControl(
 IDesignerHost* designerHost,
 Control* control
) = 0;
public abstract function DataBindControl(
   designerHost : IDesignerHost,
 control : Control


The IDesignerHost for the document.
The Control to bind.


This method should be implemented in a derived class to provide functionality to a custom data-binding handler. The logic for the data binding should be implemented within this method, and can be specific to the type or types that the data-binding handler is to bind a property or properties on.

Notes to Implementers:  Most data binding handlers will need to examine the data bindings collection on the control, using the IDataBindingsAccessor interface, to determine if any specific properties it can handle are data-bound.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

DataBindingHandler Class | DataBindingHandler Members | System.Web.UI.Design Namespace | IDataBindingsAccessor

© 2015 Microsoft