New to Telerik UI for .NET MAUI? Start a free 30-day trial

Handles reordering group descriptors and adding DataGrid columns to the grouping panel.

Definition

Namespace:Telerik.Maui.Controls.DataGrid

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class DataGridGroupingPanelCollectionViewDragDropBehavior : CollectionViewDragDropBehavior

Inheritance: objectCollectionViewDragDropBehaviorDataGridGroupingPanelCollectionViewDragDropBehavior

Inherited Members CollectionViewDragDropBehavior.CanStartDrag(CollectionViewDragDropContext)CollectionViewDragDropBehavior.CollectionViewCollectionViewDragDropBehavior.AllowDrop

Constructors

C#
public DataGridGroupingPanelCollectionViewDragDropBehavior()

Methods

Determines whether the current drop operation can be completed based on the drag and drop context. Override this method to provide custom validation logic for when drop operations are allowed.

C#
public override bool CanDrop(CollectionViewDragDropContext state)
Parameters:stateCollectionViewDragDropContext

The context information about the current drag and drop operation.

Returns:

bool

True if the drop operation can be completed; otherwise, false.

Overrides: CollectionViewDragDropBehavior.CanDrop(CollectionViewDragDropContext)

Executes the drop operation, performing the actual data manipulation to complete the drag and drop. This method is called only when the item is dropped on a valid drop target. Override this method to provide custom drop logic.

C#
public override void Drop(CollectionViewDragDropContext state)
Parameters:stateCollectionViewDragDropContext

The context information about the drag and drop operation being completed.

Overrides: CollectionViewDragDropBehavior.Drop(CollectionViewDragDropContext)

Determines the type of drop operation to perform based on the current drag and drop context. Override this method to provide custom logic for determining whether items should be moved, copied, or if the drop should be refused.

C#
public override DropOperation GetDropOperation(CollectionViewDragDropContext state)
Parameters:stateCollectionViewDragDropContext

The context information about the current drag and drop operation.

Returns:

DropOperation

A DropOperation value indicating the type of operation to perform.

Overrides: CollectionViewDragDropBehavior.GetDropOperation(CollectionViewDragDropContext)