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

TableView.ScrollBarCustomRowAnnotation Event

Allows creating a new scrollbar annotation based on data row values and a row handle.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public event EventHandler<ScrollBarCustomRowAnnotationEventArgs> ScrollBarCustomRowAnnotation

#Event Data

The ScrollBarCustomRowAnnotation event's data class is ScrollBarCustomRowAnnotationEventArgs. The following properties provide information specific to this event:

Property Description
Row Returns a data source object that corresponds to a data row for which an event has been raised.
RowHandle Gets the handle of a row, for which an event has been raised.
ScrollBarAnnotationInfo Gets or sets the information about the layout and appearance of custom scrollbar annotation marks.

#Remarks

Use the ScrollBarCustomRowAnnotation event to create a new scrollbar annotation based on a row value (available via the ScrollBarCustomRowAnnotationEventArgs.Row property) and a row handle (available via the ScrollBarCustomRowAnnotationEventArgs.RowHandle property). You can define the appearance of scrollbar annotation marks using the ScrollBarCustomRowAnnotationEventArgs.ScrollBarAnnotationInfo property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ScrollBarCustomRowAnnotation event.

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.

See Also