GridLookUpEdit.Properties Property
Specifies settings specific to the current editor.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraGrid.v21.1.dll
NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Grid
Declaration
Property Value
Type | Description |
---|---|
RepositoryItemGridLookUpEdit | A RepositoryItemGridLookUpEdit object containing settings for the editor. |
Remarks
Use the Properties object to customize the lookup editor. You can use its members to specify:
- the source of the dropdown rows (RepositoryItemLookUpEditBase.DataSource);
- the field whose data is displayed in the edit box (RepositoryItemLookUpEditBase.DisplayMember);
- the field which matches the edit value (RepositoryItemLookUpEditBase.ValueMember);
- the type of View to represent data in the dropdown (RepositoryItemGridLookUpEditBase.PopupViewType), etc.
When using editors for inplace editing within container controls such as the XtraGrid, you do not work with the editors directly but work with corresponding repository items. In order to use a lookup editor for inplace editing, you have to create a RepositoryItemGridLookUpEdit object explicitly (for instance via the grid’s designer) and then assign it to a specific column. A lookup editor will be automatically created when required based upon the repository item settings.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Properties property.
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.