Bind 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(
	IEntityFactory2 factory,
	ListControl list,
	IEntityField2 displayFieldName,
	IEntityField2 valueFieldName,
	bool noPreference,
	string preferenceValue,
	IRelationPredicateBucket bucket,
	IDataAccessAdapter adapter
)
Visual Basic
Public Shared Sub BindListControl ( 
	factory As IEntityFactory2,
	list As ListControl,
	displayFieldName As IEntityField2,
	valueFieldName As IEntityField2,
	noPreference As Boolean,
	preferenceValue As String,
	bucket As IRelationPredicateBucket,
	adapter As IDataAccessAdapter
)
Visual C++
public:
static void BindListControl(
	IEntityFactory2^ factory, 
	ListControl^ list, 
	IEntityField2^ displayFieldName, 
	IEntityField2^ valueFieldName, 
	bool noPreference, 
	String^ preferenceValue, 
	IRelationPredicateBucket^ bucket, 
	IDataAccessAdapter^ adapter
)
F#
static member BindListControl : 
        factory : IEntityFactory2 * 
        list : ListControl * 
        displayFieldName : IEntityField2 * 
        valueFieldName : IEntityField2 * 
        noPreference : bool * 
        preferenceValue : string * 
        bucket : IRelationPredicateBucket * 
        adapter : IDataAccessAdapter -> unit 

Parameters

factory
Type: IEntityFactory2
LLBLGen EntityFactory
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
bucket
Type: IRelationPredicateBucket
IRelationPredicateBucket Filter
adapter
Type: IDataAccessAdapter
Data adapter

See Also