Click or drag to resize
BindingsExtensionsAsBindingT, TValue Method

Namespace: Qlik.Engine.Extensions.WinForms
Assembly: Qlik.Engine.Extensions.WinForms (in Qlik.Engine.Extensions.WinForms.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
public static BindingSource AsBinding<T, TValue>(
	this T source,
	ListControl control,
	Func<T, IEnumerable<TValue>> bindingElement,
	string displayMember = null,
	string valueMember = null
)
where T : IGenericObject

Parameters

source
Type: T
control
Type: System.Windows.FormsListControl
bindingElement
Type: SystemFuncT, IEnumerableTValue
displayMember (Optional)
Type: SystemString
valueMember (Optional)
Type: SystemString

Type Parameters

T
TValue

Return Value

Type: BindingSource

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also