'宣言 Public Event RowValidating As RowColEventHandler
public event RowColEventHandler RowValidating
イベント データ
イベント ハンドラが、このイベントに関連するデータを含む、RowColEventArgs 型の引数を受け取りました。次の RowColEventArgs プロパティには、このイベントの固有の情報が記載されます。
プロパティ | 解説 |
---|---|
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. |
解説
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.
参照