'Declaration
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.
Property | Description |
---|---|
Cancel | Gets or sets a value indicating whether the new selection should be canceled. |
NewRange | Gets the range that will be selected after the event. |
OldRange | Gets the range selected before the event. |
Remarks
This event allows you to prevent the user from scrolling the grid while an operation is being performed on the current selection.
Example
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