windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsdragdrop-736405e1.md
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.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool AllowSortedDataDragDrop { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property AllowSortedDataDragDrop As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true to allow the user to reorder data rows within the GridView if data sorting is applied; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to AllowSortedDataDragDrop |
|---|---|
| GridView |
.OptionsDragDrop .AllowSortedDataDragDrop
|
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