Back to Devexpress

GridOptionsDragDrop.AllowSortedDataDragDrop Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsdragdrop-736405e1.md

latest2.7 KB
Original Source

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

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

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool AllowSortedDataDragDrop { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property AllowSortedDataDragDrop As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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 TypePath 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

Drag-and-Drop Grid Rows

GridOptionsDragDrop Class

GridOptionsDragDrop Members

DevExpress.XtraGrid.Views.Grid Namespace