'宣言 Public Event BeforeDragRow As DragRowColEventHandler
public event DragRowColEventHandler BeforeDragRow
イベント データ
イベント ハンドラが、このイベントに関連するデータを含む、DragRowColEventArgs 型の引数を受け取りました。次の DragRowColEventArgs プロパティには、このイベントの固有の情報が記載されます。
プロパティ | 解説 |
---|---|
Cancel | Gets or sets a value indicating whether the drag operation should be canceled. |
Col | Gets the original index of the column that was dragged by the user. |
Position | Gets the new index of the column or row that was dragged by the user. |
Row | Gets the original index of the row that was dragged by the user. |
解説
This event only fires when the user drags a row using the mouse.
It does not fire when a row is moved using the RowCollection.Move method.
You can prevent specific rows from being dragged by the user by setting their RowCol.AllowDragging property to false.
参照