GridView.InvalidateScrollAnnotations() Method

Invalidates scrollbar annotations, and causes them to be redrawn.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

public virtual void InvalidateScrollAnnotations()
Public Overridable Sub InvalidateScrollAnnotations

Remarks

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