TableView.ShowModifiedRowIndicatorIcon Property
Gets or sets whether the row indicator panel displays a modified icon for all rows that contain unsaved changes. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v26.1.dll
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| Nullable<Boolean> | null |
|
Remarks
The row indicator panel displays the modified icon for the row that is being edited. When ShowModifiedRowIndicatorIcon is set to true, the Data Grid displays the modified icon for non-focused rows with unsaved changes.
The modified state is tracked on per-row basis and is automatically reset when pending changes within a particular row are saved or discarded.
To display the row indicator panel, set TableView.ShowIndicator to true.
Example: Display the Modified Icon for All Rows with Unsaved Changes
The following example displays the modified icon for all rows with unsaved changes:
<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"
ShowModifiedRowIndicatorIcon="True"
RowIndicatorBackground="#FFD6E4F0"
RowIndicatorSelectedBackground="#FF4A90D9"
RowIndicatorValidationErrorBackground="#FFFF6B6B" />
</dxg:GridControl.View>
</dxg:GridControl>
</ThemedWindow>