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

    Gets the index of 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 int TargetBandIndex { get; }

    Property Value

    Type Description
    Int32

    The index of 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 first band:

    private void TableView_ColumnDragOver(object sender, ColumnDragOverEventArgs e) {
        if (e.TargetBandIndex == 0) {
            e.Cancel = true;
        }
    }
    
    See Also