ColumnDragOverEventArgs.TargetColumn Property
Gets 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 |
|---|---|
| BaseColumn | 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 the column that contains a specific field name:
private void TableView_ColumnDragOver(object sender, ColumnDragOverEventArgs e) {
if (e.TargetColumn != null && e.TargetColumn.FieldName == "Status") {
e.Cancel = true;
}
}
See Also