TextDataBindingHandler.DataBindControl Method
Data binds the specified control.
[Visual Basic] Overrides Public Sub DataBindControl( _ ByVal designerHost As IDesignerHost, _ ByVal control As Control _ ) [C#] public override void DataBindControl( IDesignerHost designerHost, Control control ); [C++] public: void DataBindControl( IDesignerHost* designerHost, Control* control ); [JScript] public override function DataBindControl( designerHost : IDesignerHost, control : Control );
Parameters
- designerHost
- The IDesignerHost for the document that contains the control.
- control
- The Control to data bind.
Remarks
The DataBindControl method of TextDataBindingHandler sets the Text property of the control, if it exists, to a sample data string.
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 data 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.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
.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
See Also
TextDataBindingHandler Class | TextDataBindingHandler Members | System.Web.UI.Design Namespace