protected void OnVerticalScroll(object sender, ScrollEventArgs e) { // stop editing as the editor doesn't move while // the table scrolls if (this.IsEditing) this.StopEditing(); if (this.CanRaiseEvents) { if (e.Type == ScrollEventType.EndScroll || e.Type == ScrollEventType.SmallIncrement || e.Type == ScrollEventType.SmallDecrement) { int i = EnsureSafeVScrollValue(e.NewValue); e.NewValue = i; } } }