Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LayoutGroup.CanGroupSelectedItems Property

Returns whether a new group can be created within the current group which will display selected child items.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
public bool CanGroupSelectedItems { get; }

#Property Value

Type Description
Boolean

true if a new group can be created; otherwise, false.

#Remarks

This method returns whether a new group can be created for selected items via the LayoutGroup.CreateGroupForSelectedItems method.

If a single item is selected that represents a group this method returns false. If a single items is selected that represents a regular layout item this method returns true.

If two or more child items are selected this method checks whether they can be combined into a single group. Items can be combined into a group if they have adjacent borders. If the adjacent borders only partially overlap the items cannot be combined into a new group. For instance, in the following image the layoutControlItem1 and layoutControlItem2 items cannot be grouped as their borders partially overlap.

CanGroupSelectedItems_PartiallyOverlapped

See Also