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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public bool AutoExpandOnDrag { get; set; }

#Property Value

Type Description
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:

<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