GridLookUpEdit.Properties Property
Specifies settings specific to the current editor.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraGrid.v24.1.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
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.