Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TableView.HighlightItemOnHover Property

Gets or sets whether an item is highlighted when hovering.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public bool HighlightItemOnHover { get; set; }

#Property Value

Type Description
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.
<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.
<dxg:GridControl SelectionMode="Cell">
    <dxg:GridControl.View>
        <dxg:TableView HighlightItemOnHover="True" />
    </dxg:GridControl.View>
    <!-- ... --->
</dxg:GridControl>

See Also