wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-71c9ff5e.md
Gets or sets whether selected rows are faded when the grid control loses focus. This is a dependency property.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public bool FadeSelectionOnLostFocus { get; set; }
Public Property FadeSelectionOnLostFocus As Boolean
| Type | Description |
|---|---|
| Boolean |
true if selected rows are faded when the grid control loses focus; otherwise, false.
|
Set the FadeSelectionOnLostFocus property to false to highlight focused rows when the GridControl loses focus.
This property does not affect the GridControl when it is in multiple cell selection mode.
The following code snippets (auto-collected from DevExpress Examples) contain references to the FadeSelectionOnLostFocus property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-data-grid-select-rows-that-contain-specific-value/CS/DXGrid_SelectRows/Window1.xaml#L17
<dxg:GridControl.View>
<dxg:TableView AutoWidth="True" FadeSelectionOnLostFocus="False"/>
</dxg:GridControl.View>
how-to-focus-a-cell-with-the-specified-value-e1544/CS/DXSample_FocusingCells/Window1.xaml#L13
<dxg:GridControl.View>
<dxg:TableView x:Name="view" AutoWidth="True" FadeSelectionOnLostFocus="False"/>
</dxg:GridControl.View>
See Also