Skip to main content
All docs
V26.1
  • TreeListView.RowIndicatorBackground Property

    Gets or sets the row indicator panel background brush. This is a dependency property.

    Namespace: DevExpress.Xpf.Grid

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

    Declaration

    public Brush RowIndicatorBackground { get; set; }

    Property Value

    Type Default Description
    Brush null

    A Brush value.

    Remarks

    The RowIndicatorBackground property allows you to change the row indicator panel background brush. The new brush is applied to row indicator cells in the default state (non-focused, non-selected, and error-free).

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

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

    Example: Define a Custom Background for the Row Indicator Panel

    The following example sets a background brush for the row indicator panel:

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