ComponentOne FlexGrid for WinForms
AfterScroll Event

C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class : AfterScroll Event
Fires after the grid scrolls.
Public Event AfterScroll As RangeEventHandler
public event RangeEventHandler AfterScroll
Event Data

The event handler receives an argument of type RangeEventArgs containing data related to this event. The following RangeEventArgs properties provide information specific to this event.

Gets or sets a value indicating whether the new selection should be canceled.  
Gets the range that will be selected after the event.  
Gets the range selected before the event.  
This event allows you to prevent the user from scrolling the grid while an operation is being performed on the current selection.
The code below prevents the grid from scrolling while the grid is in edit mode.
void _flex_BeforeScroll(object sender, C1.Win.C1FlexGrid.RangeEventArgs e)
    if (_flex.Editor != null)
        e.Cancel = true;
See Also