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

DataViewBase.SelectionRectangleStyle Property

Gets or sets a style of the marquee selection rectangle. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public Style SelectionRectangleStyle { get; set; }

#Property Value

Type Description
Style

A Style object that represents a style to be applied to the marquee selection rectangle.

#Remarks

Target type: System.Windows.Controls.Border

To learn more, see Styles and Templates.

See the example below.

<dxg:TableView.SelectionRectangleStyle>
    <Style TargetType="Border">
        <Setter Property="Opacity" Value="0.1" />
        <Setter Property="Background" Value="Yellow" />
        <Setter Property="BorderBrush" Value="Red" />
        <Setter Property="BorderThickness" Value="2" />
    </Style>
</dxg:TableView.SelectionRectangleStyle>
See Also