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

GridView.OptionsScrollAnnotations Property

Provides access to options specific to scrollbar annotations.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

[DXCategory("Options")]
[XtraSerializableProperty(XtraSerializationVisibility.Hidden, XtraSerializationFlags.DefaultValue)]
public GridOptionsScrollAnnotations OptionsScrollAnnotations { get; }

#Property Value

Type Description
DevExpress.XtraGrid.Views.Grid.GridOptionsScrollAnnotations

A DevExpress.XtraGrid.Views.Grid.GridOptionsScrollAnnotations object specifying options specific to scrollbar annotations.

#Remarks

The GridView.OptionsScrollAnnotations property provides access to options that allow you to enable/disable specific annotations.

  • ShowErrors — specifies whether to mark rows with validation errors
  • ShowFocusedRow — specifies whether to mark the focused row
  • ShowSelectedRows — specifies whether to mark selected rows
  • ShowCustomAnnotations — specifies whether to mark rows with custom annotations provided using a dedicated event (see GridView.CustomScrollAnnotation)

Scrollbar annotations are disabled if the corresponding property is set to Default. You should explicitly set the options to True to enable the required scrollbar annotations.

// Enable annotations for the focused row.
gridView.OptionsScrollAnnotations.ShowFocusedRow = DefaultBoolean.True;

Scrollbar annotations have the following limitations:

See Also