Back to Devexpress

DataViewBase.EnableSelectedRowAppearance Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-95d3f705.md

latest2.8 KB
Original Source

DataViewBase.EnableSelectedRowAppearance Property

Gets or sets whether the selected rows are decorated with a specific appearance. 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 EnableSelectedRowAppearance { get; set; }
vb
Public Property EnableSelectedRowAppearance As Boolean

Property Value

TypeDescription
Boolean

true, if the specific appearance for selected rows is enabled; otherwise, false.

|

Remarks

Use the EnableSelectedRowAppearance property to disable decorating selected and focused rows with a specific appearance.

The image below demonstrates the visual difference between two controls with the disabled and enabled DataViewBase.EnableSelectedRowAppearance option. The first four rows are selected in both the grids.

The following code snippets (auto-collected from DevExpress Examples) contain references to the EnableSelectedRowAppearance 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.

how-to-specify-navigation-in-custom-cell-editors/CS/MainWindow.xaml#L24

xml
<dxg:GridControl.View>
    <dxg:TableView EnableSelectedRowAppearance="False" ShowGroupPanel="False" AutoWidth="True">
        <dxmvvm:Interaction.Behaviors>

wpf-data-grid-customize-background/CS/MainWindow.xaml#L30

xml
<dxg:GridControl.View>
    <dxg:TableView EnableSelectedRowAppearance="False"/>
</dxg:GridControl.View>

See Also

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace