Skip to main content
All docs
V25.1

DevExpress v25.1 Update — Your Feedback Matters

Our What's New in v25.1 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

HeatmapControl.SelectionMode Property

Gets or sets the selection mode for heatmap cells.

Namespace: DevExpress.XtraCharts.Heatmap

Assembly: DevExpress.XtraCharts.v25.1.UI.dll

NuGet Package: DevExpress.Win.Charts

#Declaration

public ElementSelectionMode SelectionMode { get; set; }

#Property Value

Type Description
ElementSelectionMode

A value that identifies the selection mode.

Available values:

Name Description
None

The selection of a chart element is disabled.

Single

Selects the only chart element.

ElementSelectionMode.Single

Multiple

Selects multiple chart elements.

ElementSelectionMode.Multiple

Extended

Combines the Single and Multiple selection modes’ behaviors. Click an element to select it. To select/deselect multiple elements, click them while the Ctrl key is pressed.

ElementSelectionMode.Extended

#Remarks

The following images show how different selection modes work for a heatmap:

Selection Mode Description
Single A user can select a single heatmap cell.
Single selection mode
Multiple A user can select multiple heatmap cells.
Multiple selection mode
Extended A user can select a single heatmap cell. A user can hold down the Ctrl key to select multiple cells.
Extended selection mode
None A user cannot select heatmap cells.

The following code enables Multiple selection mode:

heatmapControl1.SelectionMode = XtraCharts.ElementSelectionMode.Multiple;
See Also