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

    Gets 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

    public BandBase TargetBand { get; }

    Property Value

    Type Description
    BandBase

    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 band fixed to the right:

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