ListBoxEdit.GroupStyle Property
Gets a collection of GroupStyle objects that define the appearance of each level of groups.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
ObservableCollection<GroupStyle> | One or more GroupStyle objects. |
Remarks
DevExpress WPF ComboBoxEdit, LookUpEdit and ListBoxEdit controls include support for ICollectionView – allowing you to manipulate the current record and define rules for filtering, sorting and grouping.
By default, if a grouping rule is defined in the ICollectionView, editors display the plain list in which items are sorted to accomplish data grouping. Use the GroupStyle property to visually enhance the presentation of grouped items. For instance, you can display expandable groups (see the image below):
Note
A complete sample project is available at https://github.com/DevExpress-Examples/ListBoxEdit-group-mode
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GroupStyle 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.