Back to Devexpress

TableView.ScrollBarAnnotationMode Property

wpf-devexpress-dot-xpf-dot-grid-dot-tableview-f4140cea.md

latest3.8 KB
Original Source

TableView.ScrollBarAnnotationMode Property

Gets or sets the type of annotations displayed within the view’s scrollbar.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public ScrollBarAnnotationMode? ScrollBarAnnotationMode { get; set; }
vb
Public Property ScrollBarAnnotationMode As ScrollBarAnnotationMode?

Property Value

TypeDescription
Nullable<ScrollBarAnnotationMode>

A ScrollBarAnnotationMode flag that is the type of scrollbar annotations applied to the TableView.

|

Available values:

NameDescription
None

Scrollbar annotations are disabled.

| | InvalidRows |

GridControl marks invalid rows.

| | InvalidCells |

GridControl marks invalid cells.

| | Selected |

GridControl marks selected rows.

| | SearchResult |

GridControl marks search results.

| | Custom |

GridControl marks rows that fit custom criteria.

| | FocusedRow |

GridControl marks a focused row.

| | All |

All available scrollbar annotations are enabled.

|

Remarks

Set the ScrollBarAnnotationMode property to SearchResult / All and set the DataViewBase.SearchPanelAllowFilter property to false to display scrollbar annotations for search results.

Refer to the following help topic for more information: Scrollbar Annotations.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ScrollBarAnnotationMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-grid-scrollbar-annotations/CS/WpfApplication25/MainWindow.xaml#L29

xml
<dxg:GridControl.View>
    <dxg:TableView x:Name="myView" AllowPerPixelScrolling="True" ShowSearchPanelMode="Always" ScrollBarAnnotationMode="{Binding EditValue, ElementName= myListBoxEdit, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay }" ScrollBarCustomRowAnnotation ="MyScrollBarCustomRowAnnotationEventHandler" SearchPanelAllowFilter="False" Loaded="MyLoadedEventHandler">
        <dxg:TableView.FormatConditions>

wpf-pivot-grid-implement-a-custom-filter-popup/CS/DXPivotGrid_CustomFilterPopup/MainWindow.xaml#L38

xml
ShowGroupPanel="False" AllowGrouping="False" ShowIndicator="False"
ScrollBarAnnotationMode="Selected"
       />

See Also

TableView Class

TableView Members

DevExpress.Xpf.Grid Namespace