Back to Devexpress

DataViewBase.AutoExpandOnDrag Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-d9c3b720.md

latest1.8 KB
Original Source

DataViewBase.AutoExpandOnDrag Property

Gets or sets whether dragging records over a collapsed group automatically expands this group. 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 AutoExpandOnDrag { get; set; }
vb
Public Property AutoExpandOnDrag As Boolean

Property Value

TypeDescription
Boolean

true, to auto expand a collapsed groups when dragging the record over this group; otherwise, false.

|

Remarks

The code sample below shows how to use the AutoExpandOnDrag property to forbid expanding when dragging records:

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

Use the DataViewBase.AutoExpandDelayOnDrag property to set the delay in milliseconds, after which the collapsed group is expanded.

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

See Also

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace