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
Detail
objects as a checked list box. - Allows you to link/unlink child
Detail
records to/from theMaster
object using checkboxes.
-
Implement Master and Detail business object classes, where
Master
contains a collection ofDetail
objects. -
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
Detail
objects, then create a newMaster
object. You can link/unlink existingDetail
objects using editor checkboxes.
- Blazor - CheckedListBoxEditor
- Windows Forms - WinCheckedListBoxPropertyEditor.cs
(you will be redirected to DevExpress.com to submit your response)