FlexGrid for WinForms
ShowScrollTip Event
Example 



Fires before the vertical ScrollTip is displayed.
Syntax
'Declaration
 
<C1DescriptionAttribute("Fires before the vertical ScrollTip is displayed.")>
Public Event ShowScrollTip As RowColToolTipEventHandler
'Usage
 
Dim instance As C1FlexGridBase
Dim handler As RowColToolTipEventHandler
 
AddHandler instance.ShowScrollTip, handler
[C1Description("Fires before the vertical ScrollTip is displayed.")]
public event RowColToolTipEventHandler ShowScrollTip
[C1Description("Fires before the vertical ScrollTip is displayed.")]
public:
event RowColToolTipEventHandler^ ShowScrollTip
Remarks

This event fires only if the ShowScrollTips flag is set in the ScrollOptions property.

It allows you to specify the text that will be displayed in the scroll tip.

Example
The code below uses the ShowScrollTip event to display a scroll tip showing the value of the first cell that will become visible when the user stops scrolling.
_flex.ScrollOptions = ScrollFlags.DelayedScroll | ScrollFlags.ShowScrollTips;
void _flex_ShowScrollTip(object sender, ToolTipEventArgs e)
{
    e.ToolTipText = string.Format("row {0}", e.Row);
}
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