GridView.InvalidateScrollAnnotations() Method
Invalidates scrollbar annotations, and causes them to be redrawn.
Namespace: DevExpress.XtraGrid.Views.Grid
Assembly: DevExpress.XtraGrid.v24.1.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
Declaration
Remarks
The code below invalidates scrollbar annotations when a style changes.
void OnAnnotationsStyleChanged(object sender, ListChangedEventArgs e) {
if(e.ListChangedType == ListChangedType.ItemChanged)
gridView.InvalidateScrollAnnotations();
}
Note
Run the Scrollbar Annotations & Bookmarks module in the XtraGrid MainDemo to see the complete example.
See Also