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

SpreadsheetSelectionBehaviorOptions.AllowMultiSelection Property

Gets or sets whether end-users can select multiple shapes or ranges in a worksheet. This is a dependency property.

Namespace: DevExpress.Xpf.Spreadsheet

Assembly: DevExpress.Xpf.Spreadsheet.v24.2.dll

NuGet Package: DevExpress.Wpf.Spreadsheet

#Declaration

public bool AllowMultiSelection { get; set; }

#Property Value

Type Description
Boolean

true, if end-users can select several shapes or cell ranges simultaneously; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path to AllowMultiSelection
SpreadsheetBehaviorOptions
.Selection .AllowMultiSelection

#Remarks

If the AllowMultiSelection property is set to true, end-users can select multiple drawn objects (for example, pictures) or non-adjacent cell ranges in the worksheet simultaneously by holding down the CTRL key. If this property is set to false, multi-selection is not available in the SpreadsheetControl’s UI. Note that the AllowMultiSelection option does not affect multi-selection in code (using SpreadsheetControl.SetSelectedRanges or SpreadsheetControl.SetSelectedShapes methods).

See Also