Back to Devexpress

GridOptionsSelection.EnableAppearanceHideSelection Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsselection-527a6fd3.md

latest3.2 KB
Original Source

GridOptionsSelection.EnableAppearanceHideSelection Property

Gets or sets whether the appearance settings used to paint the selected row(s) when the grid control is not focused are enabled.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool EnableAppearanceHideSelection { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property EnableAppearanceHideSelection As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if the appearance settings used to paint the selected row(s) when the grid control is not focused are enabled; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to EnableAppearanceHideSelection
GridView

.OptionsSelection .EnableAppearanceHideSelection

|

Remarks

The EnableAppearanceHideSelection property specifies whether the appearance settings specified by the GridViewAppearances.HideSelectionRow property are in effect. When this property is set to false , the settings specified by the GridViewAppearances.HideSelectionRow property are ignored. In this case, when the grid is not focused the focused row’s appearance is determined by the GridViewAppearances.FocusedRow property.

If the focused row is a custom painted row or its appearance settings are specified in the GridView.RowStyle event handler, setting the EnableAppearanceHideSelection property has no effect.

See Also

EnableAppearanceFocusedRow

Multiple Row and Cell Selection

GridOptionsSelection Class

GridOptionsSelection Members

DevExpress.XtraGrid.Views.Grid Namespace