TreeListView.RowIndicatorValidationErrorBackground Property
Gets or sets the row indicator cell background brush for rows that contain a validation error. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v26.1.dll
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| Brush | null | A Brush value. |
Remarks
The RowIndicatorValidationErrorBackground property allows you to change the row indicator cell background brush for rows that contain a validation error. The brush is applied to Error and FocusedError indicator states.
If the RowIndicatorValidationErrorBackground property is null, the Data Grid applies the current theme background brush.
To display the row indicator panel, set TreeListView.ShowIndicator to true.
Example: Use Custom Row Indicator Background for Rows with Validation Errors
The following example sets a row indicator cell background brush for rows with validation errors:
<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