'宣言 Public Event BeforeDeleteRow As RowColEventHandler
public event RowColEventHandler BeforeDeleteRow
イベント データ
イベント ハンドラが、このイベントに関連するデータを含む、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 only fires when AllowDelete is set to true and the user deletes one or more rows by selecting them and pressing the DEL key. It does not fire when rows are removed from the grid programmatically or through the grid's data source.
You can use this event to cancel the deletion of the rows by setting the Cancel parameter to true.
参照