wpf-devexpress-dot-xpf-dot-grid-dot-tableview-f4140cea.md
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
public ScrollBarAnnotationMode? ScrollBarAnnotationMode { get; set; }
Public Property ScrollBarAnnotationMode As ScrollBarAnnotationMode?
| Type | Description |
|---|---|
| Nullable<ScrollBarAnnotationMode> |
A ScrollBarAnnotationMode flag that is the type of scrollbar annotations applied to the TableView.
|
Available values:
| Name | Description |
|---|---|
| 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.
|
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
<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
ShowGroupPanel="False" AllowGrouping="False" ShowIndicator="False"
ScrollBarAnnotationMode="Selected"
/>
See Also