ComponentOne FlexPivot for WinForms
C1.Win.FlexPivot.4.8 Assembly / C1.Win.FlexPivot Namespace / C1FlexPivotGrid Class / BeforeRowColChange Event

In This Topic
    BeforeRowColChange Event (C1FlexPivotGrid)
    In This Topic
    Fires before the current cell changes (C1.Win.C1FlexGrid.C1FlexGridBase.Row and C1.Win.C1FlexGrid.C1FlexGridBase.Col properties).
    Syntax
    'Declaration
     
    Public Event BeforeRowColChange As RangeEventHandler
    public event RangeEventHandler BeforeRowColChange
    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 C1.Win.C1FlexGrid.C1FlexGridBase.Row or C1.Win.C1FlexGrid.C1FlexGridBase.Col 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.

    C1.Win.C1FlexGrid.C1FlexGridBase.BeforeRowColChange fires only when the C1.Win.C1FlexGrid.C1FlexGridBase.Row or C1.Win.C1FlexGrid.C1FlexGridBase.Col properties are about to change. To detect extended selections, you also need to handle the C1.Win.C1FlexGrid.C1FlexGridBase.BeforeSelChange event.

    See Also