RepositoryItemLookUpEdit Class
Contains settings specific to a lookup editor.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v18.1.dll
Declaration
[DataAccessMetadata("All", SupportedProcessingModes = "Simple", EnableDirectBinding = false)]
[ToolboxBitmap(typeof(ToolboxIconsRootNS), "LookUpEdit")]
[RepositoryItemLookUpEditBase.LookupEditCustomBindingProperties("LookUpEdit")]
public class RepositoryItemLookUpEdit :
RepositoryItemLookUpEditBase,
IDataInfo
Related API Members
The following members accept/return RepositoryItemLookUpEdit objects:
Remarks
The RepositoryItemLookUpEdit class specifies settings specific to a LookUpEdit control. You can access these settings via the editor’s LookUpEdit.Properties object.
The repository item provides properties, methods and events to customize the editor’s behavior and appearance. For instance, you can specify:
- source of dropdown rows (RepositoryItemLookUpEditBase.DataSource)
- field whose data is displayed in the edit box (RepositoryItemLookUpEditBase.DisplayMember)
- field which matches the edit value (RepositoryItemLookUpEditBase.ValueMember)
- collection of columns to display in the dropdown (RepositoryItemLookUpEdit.Columns)
- width of the dropdown window (RepositoryItemLookUpEdit.PopupWidth), etc.
The RepositoryItemLookUpEdit.PopulateColumns method allows you create columns for available fields in the RepositoryItemLookUpEditBase.DataSource. To modify their width, you can call the RepositoryItemLookUpEdit.BestFit method.
You should create repository items as standalone objects only to specify inplace editors for container controls (such as the XtraGrid).
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the RepositoryItemLookUpEdit class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.