This example illustrates how to display a collection property as a checked list box in XAF applications.
The example application:
- Shows the collection of all existing
Detailobjects as a checked list box. - Allows you to link/unlink child
Detailrecords to/from theMasterobject using checkboxes.
-
Implement Master and Detail business object classes, where
Mastercontains a collection ofDetailobjects. -
Copy the implementation of one of the following custom property editors:
- For Blazor applications, use CheckedListBoxEditor.
- For Windows Forms applications, use WinCheckedListBoxPropertyEditor.cs.
-
Run the application.
-
Create several
Detailobjects, then create a newMasterobject. You can link/unlink existingDetailobjects using editor checkboxes.
- Blazor - CheckedListBoxEditor
- Windows Forms - WinCheckedListBoxPropertyEditor.cs
(you will be redirected to DevExpress.com to submit your response)
