Skip to main content
A newer version of this page is available. .
Bar

BarBaseButtonItem.GroupIndex Property

Gets or sets the group index of the button item.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v19.2.dll

Declaration

[DefaultValue(0)]
public virtual int GroupIndex { get; set; }

Property Value

Type Default Description
Int32 0

The group index of the button item.

Remarks

When an item’s GroupIndex property is set to 0, it behaves independently of all the other bar items. If several items have the same non-zero GroupIndex, they are grouped together. When a user clicks one of these items, it remains selected until another item belonging to the same group is clicked.

The BarBaseButtonItem.AllowAllUp property determines if all the items in a group can be unselected simultaneously.

For BarButtonItem objects and their descendants the GroupIndex property is in effect only if the BarButtonItem.ButtonStyle property is set to BarButtonStyle.Check.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GroupIndex 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.

See Also