Back to Devexpress

GridOptionsSelection.EnableAppearanceHotTrackedRow Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsselection-4d5c6c16.md

latest3.8 KB
Original Source

GridOptionsSelection.EnableAppearanceHotTrackedRow Property

Gets or sets whether grid rows are hot-tracked.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public virtual DefaultBoolean EnableAppearanceHotTrackedRow { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
<XtraSerializableProperty>
Public Overridable Property EnableAppearanceHotTrackedRow As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

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

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Property Paths

You can access this nested property as listed below:

Object TypePath to 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.

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.

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

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

See Also

HotTrackedRow

GridOptionsSelection Class

GridOptionsSelection Members

DevExpress.XtraGrid.Views.Grid Namespace