Back to Devexpress

DataViewBase.AllowScrollingOnDrag Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-50cf8c6f.md

latest1.6 KB
Original Source

DataViewBase.AllowScrollingOnDrag Property

Gets or sets whether dragging records to the edges of the grid’s view automatically activates scrolling. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public bool AllowScrollingOnDrag { get; set; }
vb
Public Property AllowScrollingOnDrag As Boolean

Property Value

TypeDescription
Boolean

true , to activate scrolling when dragging records to the edges of the grid’s view; otherwise, false.

|

Remarks

The code sample below shows how to use the AllowScrollingOnDrag property to prevent a user from scrolling:

xaml
<dxg:GridControl>
   <!---->
   <dxg:GridControl.View>
      <dxg:TreeListView AllowDragDrop="True" AllowScrollingOnDrag="False" />
   </dxg:GridControl.View>
</dxg:GridControl>

Refer to the Drag-and-Drop topic to learn more.

See Also

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace