This example demonstrates a simple drop-down editor for reference properties. The editor contains Open, Add, and Clear buttons.
The LookupPropertyEditorEx.cs file contains the reusable LookupPropertyEditorEx
class. This Property Editor can be used for reference properties instead of the standard LookupPropertyEditor
in WinForms XAF applications.
The LookUpEditEx
and RepositoryItemLookUpEditEx
classes implement a control for this Property Editor. The control extends the LookUpEdit class with additional features.
Note
To further research how the lookup property editor works, you can look at its source code in the following file:
C:\Program Files\DevExpress xx.x\Components\Sources\DevExpress.ExpressApp\DevExpress.ExpressApp.Win\Editors\LookupPropertyEditor.cs
- Implement Custom Property Editors
- Custom Dropdown Editors with Popup Forms
- IComplexViewItem Interface
- IGridInplaceEdit Interface
- LookUpEdit Class
- PropertyEditorAttribute Class
- RepositoryItemPopupContainerEdit Class
(you will be redirected to DevExpress.com to submit your response)