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

    Gets the source band where the drag operation started.

    Namespace: DevExpress.Xpf.Grid

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

    Declaration

    public BandBase SourceBand { get; }

    Property Value

    Type Description
    BandBase

    The source band where the drag operation started.

    Remarks

    The following code snippet prevents users from dragging an item when the source band is fixed to the left:

    private void TableView_ColumnDragOver(object sender, ColumnDragOverEventArgs e) {
        if (e.SourceBand != null && e.SourceBand.Fixed == FixedStyle.Left) {
            e.Cancel = true;
        }
    }
    
    See Also