Skip to main content
All docs
V25.1
  • GridOptionsDragDrop.AllowSortedDataDragDrop Property

    Gets or sets a value that specifies whether the user can reorder data rows within the GridView if data sorting is applied.

    Namespace: DevExpress.XtraGrid.Views.Grid

    Assembly: DevExpress.XtraGrid.v25.1.dll

    NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

    Declaration

    [DefaultValue(true)]
    [XtraSerializableProperty]
    public virtual bool AllowSortedDataDragDrop { get; set; }

    Property Value

    Type Default Description
    Boolean true

    true to allow the user to reorder data rows within the GridView if data sorting is applied; otherwise, false.

    Property Paths

    You can access this nested property as listed below:

    Object Type Path to AllowSortedDataDragDrop
    GridView
    .OptionsDragDrop .AllowSortedDataDragDrop

    Remarks

    When the AllowSortedDataDragDrop option is enabled and the GridView is sorted, the GridView automatically changes the value in the cell(s) of the sorted column(s) after the user drops a data row in a different position.

    Drag and Drop Data Rows - WinForms Data Grid

    The AllowSortedDataDragDrop option has no effect if the sorted column is read-only.

    Read the following topic for additional information: Drag-and-Drop Grid Rows.

    Note

    Attach the Drag-and-Drop Behavior to the GridView to allow users to reorder and move data rows using drag and drop.

    See Also