Skip to main content
All docs
V24.2

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

GridDropTargetMode Enum

Lists values that specify the drop position behavior. Applicable only to drag and drop operations initiated externally.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public enum GridDropTargetMode

#Members

Name Description Image
BetweenRows

The drop position is defined by TargetItem and DropPosition properties.

Drop rows between rows

Component

The drop position is not defined. You need to implement logic in the ItemsDropped event handler to specify where to insert rows.

Drop rows onto the component

#Remarks

In the following snippet, the first Grid accepts rows from the second Grid. The DropTargetMode property of the first Grid is Component.

Razor
<DxGrid @ref="@InStockGrid"
        Data="InStockProducts"
        DropTargetMode="GridDropTargetMode.Component"
        ItemsDropped="Grid_ItemsDropped">
    <Columns>
        <DxGridDataColumn FieldName="ProductName" MinWidth="50" />
        <DxGridDataColumn FieldName="UnitPrice" DisplayFormat="c2" />
    </Columns>
</DxGrid>

<DxGrid Data="DiscontinuedProducts"
        AllowDragRows="true"
        AllowedDropTarget="GridAllowedDropTarget.External">
    <Columns>
        <DxGridDataColumn FieldName="ProductName" MinWidth="50" />
        <DxGridDataColumn FieldName="UnitPrice" DisplayFormat="c2" />
    </Columns>
</DxGrid>
See Also