Binds list control. Note: Returned collection of lookup values is Cached

Namespace: MonoSoftware.MonoX.Utilities
Assembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)

Syntax

C#
public static void BindListControl(
	Type factoryType,
	ListControl list,
	IEntityField2 displayFieldName,
	IEntityField2 valueFieldName,
	bool noPreference
)
Visual Basic
Public Shared Sub BindListControl ( 
	factoryType As Type,
	list As ListControl,
	displayFieldName As IEntityField2,
	valueFieldName As IEntityField2,
	noPreference As Boolean
)
Visual C++
public:
static void BindListControl(
	Type^ factoryType, 
	ListControl^ list, 
	IEntityField2^ displayFieldName, 
	IEntityField2^ valueFieldName, 
	bool noPreference
)
F#
static member BindListControl : 
        factoryType : Type * 
        list : ListControl * 
        displayFieldName : IEntityField2 * 
        valueFieldName : IEntityField2 * 
        noPreference : bool -> unit 

Parameters

factoryType
Type: System..::..Type
LLBLGen EntityFactoryType
list
Type: System.Web.UI.WebControls..::..ListControl
List control
displayFieldName
Type: IEntityField2
Data text field
valueFieldName
Type: IEntityField2
Data value field
noPreference
Type: System..::..Boolean
Set to True if No preference is needed (Value = Guid.Empty)

See Also