LookupWindow Constructor (LookupDefinitionBase, Boolean, Boolean, String, IAutoFillControl, PrimaryKeyValue)
Initializes a new instance of the LookupWindow class.
Namespace:
RingSoft.DbLookup.Controls.WPFAssembly: RingSoft.DbLookup.Controls.WPF (in RingSoft.DbLookup.Controls.WPF.dll)
Syntax
public LookupWindow( LookupDefinitionBase lookupDefinition, bool allowAdd, bool allowView, string initialSearchFor, IAutoFillControl autoFillControl, PrimaryKeyValue readOnlyValue )
Public Sub New ( _ lookupDefinition As LookupDefinitionBase, _ allowAdd As Boolean, _ allowView As Boolean, _ initialSearchFor As String, _ autoFillControl As IAutoFillControl, _ readOnlyValue As PrimaryKeyValue _ )
public: LookupWindow( LookupDefinitionBase^ lookupDefinition, bool^ allowAdd, bool^ allowView, String^ initialSearchFor, IAutoFillControl^ autoFillControl, PrimaryKeyValue^ readOnlyValue )
Parameters
- lookupDefinition
- Type: RingSoft.DbLookup.Lookup..::..LookupDefinitionBase
The lookup definition.
- allowAdd
- Type: Boolean
if set to true [allow add].
- allowView
- Type: Boolean
if set to true [allow view].
- initialSearchFor
- Type: String
The initial search for.
- autoFillControl
- Type: RingSoft.DbLookup.AutoFill..::..IAutoFillControl
The automatic fill control.
- readOnlyValue
- Type: RingSoft.DbLookup..::..PrimaryKeyValue
The read only value.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Lookup definition does not have any visible columns defined or its initial sort column is null. |