Back to Devexpress

GridView.OptionsScrollAnnotations Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridview-7b80468e.md

latest3.5 KB
Original Source

GridView.OptionsScrollAnnotations Property

Provides access to options specific to scrollbar annotations.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DXCategory("Options")]
[XtraSerializableProperty(XtraSerializationVisibility.Hidden, XtraSerializationFlags.DefaultValue)]
public GridOptionsScrollAnnotations OptionsScrollAnnotations { get; }
vb
<DXCategory("Options")>
<XtraSerializableProperty(XtraSerializationVisibility.Hidden, XtraSerializationFlags.DefaultValue)>
Public ReadOnly Property OptionsScrollAnnotations As GridOptionsScrollAnnotations

Property Value

TypeDescription
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.

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

Scrollbar annotations have the following limitations:

See Also

GridView Class

GridView Members

DevExpress.XtraGrid.Views.Grid Namespace