TemplateControlAddBinding(Control, String, String) Method

This method and its overloads can be used to simplify adding data bindings to controls contained in the template.

Definition

Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.18.0+3a863295c73252b22e8ab6862ed6bdc57bcbd0fc
public Binding AddBinding(
	Control control,
	string controlProperty,
	string dataMember
)

Parameters

control  Control
The control to which to add the data binding
controlProperty  String
The name of the control property to bind
dataMember  String
The property or list to which to bind

Return Value

Binding
The newly created data binding

Remarks

This version will clear all existing bindings and add the requested binding

See Also