Back to Devexpress

GridDropTargetMode Enum

blazor-devexpress-dot-blazor-bebe475a.md

latest2.5 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public enum GridDropTargetMode

Members

NameDescriptionImage
BetweenRows

The drop position is defined by TargetItem and DropPosition properties.

|

| | Component |

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

|

|

The following properties accept/return GridDropTargetMode values:

LibraryRelated API Members
BlazorDxGrid.DropTargetMode
IGrid.DropTargetMode
XAF: Cross-Platform .NET App UI & Web APIDxGridModel.DropTargetMode

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

DevExpress.Blazor Namespace