'宣言 Public Event BeforeAddRow As RowColEventHandler
public event RowColEventHandler BeforeAddRow
イベント データ
イベント ハンドラが、このイベントに関連するデータを含む、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 AllowAddNew is set to true and the user creates a new empty row by moving the cursor into the last row on the grid. It does not fire when a new row is added to the grid programmatically or when a row is added to the grid's data source.
You can use this event to cancel the creation of new rows by setting the Cancel parameter to true. In this case, the cursor does not move into the new row.
参照