ColumnDragOverEventArgs.TargetIndex Property
Gets the index of the target column or 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 index of the target column or 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 one of the first two columns:
private void TableView_ColumnDragOver(object sender, ColumnDragOverEventArgs e) {
if (e.TargetIndex >= 0 && e.TargetIndex < 2) {
e.Cancel = true;
}
}
See Also