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,
	string preferenceValue
)
Visual Basic
Public Shared Sub BindListControl ( 
	factoryType As Type,
	list As ListControl,
	displayFieldName As IEntityField2,
	valueFieldName As IEntityField2,
	noPreference As Boolean,
	preferenceValue As String
)
Visual C++
public:
static void BindListControl(
	Type^ factoryType, 
	ListControl^ list, 
	IEntityField2^ displayFieldName, 
	IEntityField2^ valueFieldName, 
	bool noPreference, 
	String^ preferenceValue
)
F#
static member BindListControl : 
        factoryType : Type * 
        list : ListControl * 
        displayFieldName : IEntityField2 * 
        valueFieldName : IEntityField2 * 
        noPreference : bool * 
        preferenceValue : string -> 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)
preferenceValue
Type: System..::..String
No preference Text

See Also