ComponentOne FlexPivot for WinForms
C1.Win.C1FlexGrid.4.5.2 Assembly / C1.Win.C1FlexGrid Namespace / C1FlexGridBase Class / AfterAddRow Event

In This Topic
    AfterAddRow Event (C1FlexGridBase)
    In This Topic
    Fires after a new row is added by the user.
    Syntax
    'Declaration
     
    Public Event AfterAddRow As RowColEventHandler
    public event RowColEventHandler AfterAddRow
    Event Data

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

    PropertyDescription
    Gets or sets a value indicating whether the operation should be canceled.  
    Gets the index of the column that caused the event.  
    Gets the index of the row that caused the event.  
    Remarks

    This event only fires when AllowAddNew property is set to true and the user creates a new empty row by moving the cursor into the last row on the grid.

    It does not fire when a new row is added to the grid programmatically or through the grid's data source.

    You can use this event to initialize the new rows.

    When a new row is created this way, it is initially empty, and the user may cancel the row by moving the cursor out of the new row before making any edits. In this case, the grid fires the CancelAddRow event and the new (empty) row is removed.

    See Also