Skip to main content
All docs
V26.1
  • ColumnDragOverEventArgs.SourceColumn Property

    Gets the source column or band where the drag operation started.

    Namespace: DevExpress.Xpf.Grid

    Assembly: DevExpress.Xpf.Grid.v26.1.Core.dll

    Declaration

    public BaseColumn SourceColumn { get; }

    Property Value

    Type Description
    BaseColumn

    The source column or band where the drag operation started.

    Remarks

    The following code snippet prevents users from dragging an item when the source column contains a specific field name:

    private void TableView_ColumnDragOver(object sender, ColumnDragOverEventArgs e) {
        if (e.SourceColumn != null && e.SourceColumn.FieldName == "Id") {
            e.Cancel = true;
        }
    }
    
    See Also