FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / C1FlexGridBase Class / ShowScrollTip Event
Example

In This Topic
    ShowScrollTip Event (C1FlexGridBase)
    In This Topic
    Fires before the vertical ScrollTip is displayed.
    Syntax
    'Declaration
     
    
    Public Event ShowScrollTip As RowColToolTipEventHandler
    public event RowColToolTipEventHandler ShowScrollTip
    Event Data

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

    PropertyDescription
    Gets or sets a value indicating whether the operation should be canceled. (Inherited from C1.Win.FlexGrid.RowColEventArgs)
    Gets the index of the column that caused the event. (Inherited from C1.Win.FlexGrid.RowColEventArgs)
    Gets the index of the row that caused the event. (Inherited from C1.Win.FlexGrid.RowColEventArgs)
    Gets or sets the text to be displayed in the tooltip.  
    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);
    }
    See Also