Skip to main content

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

DataViewBase.AllowSortedDataDragDrop Property

Gets or sets whether an end-user is allowed to drag and drop data that are sorted or grouped. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public bool AllowSortedDataDragDrop { get; set; }

#Property Value

Type Description
Boolean

true, to allow end-users to drag and drop sorted and grouped data; otherwise, false.

#Remarks

By default, the sorted or grouped GridControl doesn’t allow dropping records at some positions, which are defined by the value of a column by which the control is sorted (grouped). Enabling the AllowSortedDataDragDrop option allows the GridControl to modify record data in such columns to insert the dropped record at the required position.

Note

Drag-and-drop operations do not work if sorted columns are read-only.

The following image shows the GridControl sorted by the Job Title column. A drag-and-drop operation changes the Job Title value of a dropped record:

You can set the AllowSortedDataDragDrop property to true to allow moving records from one group to another:

See Also