Back to Devexpress

TableView.HighlightItemOnHover Property

wpf-devexpress-dot-xpf-dot-grid-dot-tableview-e1fa02dc.md

latest2.4 KB
Original Source

TableView.HighlightItemOnHover Property

Gets or sets whether an item is highlighted when hovering.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

TypeDescription
Boolean

true to highlight an item when hovering; otherwise, false.

|

Remarks

To highlight rows when hovering:

  1. Set the HighlightItemOnHover property to true.
  2. Set the DataControlBase.SelectionMode property to MultiSelectMode.Row or MultiSelectMode.MultipleRow.
xaml
<dxg:GridControl SelectionMode="Row">
    <dxg:GridControl.View>
        <dxg:TableView HighlightItemOnHover="True" />
    </dxg:GridControl.View>
    <!-- ... --->
</dxg:GridControl>

To highlight cells when hovering:

  1. Set the HighlightItemOnHover property to true.
  2. Set the DataControlBase.SelectionMode property to MultiSelectMode.Cell.
xaml
<dxg:GridControl SelectionMode="Cell">
    <dxg:GridControl.View>
        <dxg:TableView HighlightItemOnHover="True" />
    </dxg:GridControl.View>
    <!-- ... --->
</dxg:GridControl>

See Also

Row Selection

Cell Selection

TableView Class

TableView Members

DevExpress.Xpf.Grid Namespace