FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / C1FlexGrid Class / RowValidating Event

In This Topic
    RowValidating Event (C1FlexGrid)
    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 RowColEventArgs.Cancel property to true.

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

    See Also