Skip to main content

GridOptionsSelection.EnableAppearanceHotTrackedRow Property

Gets or sets whether grid rows are hot-tracked.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v22.1.dll

NuGet Package: DevExpress.Win.Grid

Declaration

[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public virtual DefaultBoolean EnableAppearanceHotTrackedRow { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

A value that specifies whether to hot-track rows. The DefaultBoolean.Default value is equivalent to DefaultBoolean.False.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Property Paths

You can access this nested property as listed below:

Object Type Path to EnableAppearanceHotTrackedRow
AdvBandedGridView
.OptionsSelection.EnableAppearanceHotTrackedRow
GridView
.OptionsSelection.EnableAppearanceHotTrackedRow

Remarks

If the view’s OptionsSelection.EnableAppearanceHotTrackedRow option is enabled, the grid control highlights rows under the mouse cursor using special background and foreground colors.

image

The default row hot-track colors are different for different skins. Use the view.Appearance.HotTrackedRow property to specify custom background and foreground colors used to paint hot-tracked rows (the ForeColor, BackColor, BackColor2 and GradientMode properties are only in effect).

The default behavior overrides the column’s appearance settings (see GridColumn.AppearanceCell) by row hot-track colors.

Row hot-tracking override column's appearance settings

Enable the GridColumn.AppearanceCell.Options.HighPriority option to allow the column’s appearance settings to override the row hot-track colors.

Column's appearance settings override row hot-track colors

Grid control does not support hot-tracked rows when the GridOptionsView.AllowCellMerge option is set to true.

See Also