Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.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.

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