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

    Gets the target area where the dragged item is about to be dropped.

    Namespace: DevExpress.Xpf.Grid

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

    Declaration

    public HeaderArea TargetArea { get; }

    Property Value

    Type Description
    HeaderArea

    The target area where the dragged item is about to be dropped.

    Available values:

    Name Description
    ColumnHeader

    Indicates the Column Header area.

    GroupPanel

    Indicates the Group Panel area.

    ColumnChooser

    Indicates the Column Chooser area.

    BandPanel

    Indicates the Band Panel area.

    Outside

    Indicates the UI area outside of the GridControl.

    Remarks

    The following code snippet cancels the drag & drop operation if a user attempts to drop the dragged item within the Column Chooser:

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