Back to Devexpress

DataViewBase.FadeSelectionOnLostFocus Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-71c9ff5e.md

latest2.8 KB
Original Source

DataViewBase.FadeSelectionOnLostFocus Property

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

Declaration

csharp
public bool FadeSelectionOnLostFocus { get; set; }
vb
Public Property FadeSelectionOnLostFocus As Boolean

Property Value

TypeDescription
Boolean

true if selected rows are faded when the grid control loses focus; otherwise, false.

|

Remarks

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

xml
<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

xml
<dxg:GridControl.View>
    <dxg:TableView x:Name="view" AutoWidth="True" FadeSelectionOnLostFocus="False"/>
</dxg:GridControl.View>

See Also

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace