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

    Gets the source area where the drag operation started.

    Namespace: DevExpress.Xpf.Grid

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

    Declaration

    public HeaderArea SourceArea { get; }

    Property Value

    Type Description
    HeaderArea

    The source area where the drag operation started.

    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 prevents users from dragging an item within the Group Panel:

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