'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.
Property | Description |
---|---|
Cancel | Gets or sets a value indicating whether the operation should be canceled. |
Col | Gets the index of the column that caused the event. |
Row | 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