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

    Gets the row index of the source band where the drag operation started.

    Namespace: DevExpress.Xpf.Grid

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

    Declaration

    public int SourceBandRowIndex { get; }

    Property Value

    Type Description
    Int32

    The row index of the source band where the drag operation started.

    Remarks

    The following code snippet prevents users from dragging an item within a band in the first row:

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