ColumnDragOverEventArgs.TargetBandRowIndex Property
Gets the row index of the target band where the dragged item is about to be dropped.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v26.1.Core.dll
Declaration
Property Value
| Type | Description |
|---|---|
| Int32 | The row index of the target band where the dragged item is about to be dropped. |
Remarks
The following code snippet cancels the drag & drop operation if a user attempts to drop the dragged item within the first row:
private void TableView_ColumnDragOver(object sender, ColumnDragOverEventArgs e) {
if (e.TargetBandRowIndex == 0) {
e.Cancel = true;
}
}
See Also