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

In This Topic
    BeforeSelChange Event (C1FlexGridBase)
    In This Topic
    Fires before the selection changes (Row, Col, RowSel, ColSel properties).
    Syntax
    'Declaration
     
    
    Public Event BeforeSelChange As RangeEventHandler
    public event RangeEventHandler BeforeSelChange
    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.

    PropertyDescription
    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.  
    Remarks

    This event fires before the RowSel and ColSel properties change, either as a result of user actions or through code. It allows you to prevent the selection of certain cells, thus creating "protected" ranges on a grid.

    To prevent the selection of a range, you also need to handle the BeforeRowColChange event, which is fired before the Row and Col properties change.

    See Also