FlexGrid for WinForms
AfterScroll Event
Example 



Fires after the grid scrolls.
Syntax
'Declaration
 
<C1DescriptionAttribute("Fires after the grid scrolls.")>
Public Event AfterScroll As RangeEventHandler
'Usage
 
Dim instance As C1FlexGridBase
Dim handler As RangeEventHandler
 
AddHandler instance.AfterScroll, handler
[C1Description("Fires after the grid scrolls.")]
public event RangeEventHandler AfterScroll
[C1Description("Fires after the grid scrolls.")]
public:
event RangeEventHandler^ AfterScroll
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;
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback