Skip to main content
All docs
V26.1
  • TableView.RowIndicatorSelectedBackground Property

    Gets or sets the background brush of the row indicator cell in the selected or/and focused row. This is a dependency property.

    Namespace: DevExpress.Xpf.Grid

    Assembly: DevExpress.Xpf.Grid.v26.1.dll

    Declaration

    public Brush RowIndicatorSelectedBackground { get; set; }

    Property Value

    Type Default Description
    Brush null

    A Brush value.

    Remarks

    The RowIndicatorSelectedBackground property allows you to change the row indicator cell background brush for the focused or/and selected row.

    If RowIndicatorSelectedBackground is null, the Data Grid applies the current theme background brush.

    To display the row indicator panel, set the TableView.ShowIndicator property to true.

    Example: Display the Row Indicator Panel with a Custom Background for Selected/Focused Rows

    The following example sets a row indicator cell background brush for the selected or/and focused row:

    <ThemedWindow x:Class="RowIndicatorBackgroundExample.MainWindow"
                  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                  xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid">
        <dxg:GridControl>
            <dxg:GridControl.View>
                <dxg:TableView ShowIndicator="True"
                               RowIndicatorBackground="#FFD6E4F0"
                               RowIndicatorSelectedBackground="#FF4A90D9"
                               RowIndicatorValidationErrorBackground="#FFFF6B6B" />
            </dxg:GridControl.View>
        </dxg:GridControl>
    </ThemedWindow>
    
    See Also