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

In This Topic
    RowValidating Event (C1FlexPivotGrid)
    In This Topic
    Fires when a row is losing focus and needs to be validated.
    Syntax
    'Declaration
     
    Public Event RowValidating As RowColEventHandler
    public event RowColEventHandler RowValidating
    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 is analogous to the System.Windows.Forms.Control.Validating event.

    Use this event to perform validation on all the values of a row. If the row does not pass validation, set the C1.Win.C1FlexGrid.RowColEventArgs.Cancel property to true.

    Canceling this event prevents the C1.Win.C1FlexGrid.C1FlexGridBase.RowValidated event from occurring, and also prevents the user from leaving the invalid row.

    See Also