Skip to main content
A newer version of this page is available. .

GridView.InvalidateScrollAnnotations() Method

Invalidates scrollbar annotations, and causes them to be redrawn.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v18.2.dll

Declaration

public virtual void InvalidateScrollAnnotations()

Remarks

Note

Show Me Run the Scrollbar Annotations & Bookmarks module in the XtraGrid MainDemo to see the complete example.

The code below invalidates scrollbar annotations when a style changes.


void OnAnnotationsStyleChanged(object sender, ListChangedEventArgs e) {
    if(e.ListChangedType == ListChangedType.ItemChanged) 
        gridView.InvalidateScrollAnnotations();
}
See Also