menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridRowDragDropController - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridRowDragDropController

    Represents a class that handles row drag-and-drop operations in SfDataGrid.

    Inheritance
    System.Object
    GridRowDragDropController
    Implements
    System.IDisposable
    Namespace: Syncfusion.UI.Xaml.Grid
    Assembly: Syncfusion.SfGrid.UWP.dll
    Syntax
    public class GridRowDragDropController : Object, IDisposable
    Remarks

    It provides the set of public properties and virtual methods to handle the row drag-and-drop operations in SfDataGrid.

    Constructors

    GridRowDragDropController()

    Initializes a new instance of GridRowDragDropController class.

    Declaration
    public GridRowDragDropController()

    Properties

    DataGrid

    Gets the reference to the SfDataGrid control.

    Declaration
    protected SfDataGrid DataGrid { get; set; }
    Property Value
    Type
    SfDataGrid

    Methods

    CloseDragIndicators()

    Closes the Drag arrow indication and clears all the row's VSM applied.

    Declaration
    protected virtual void CloseDragIndicators()

    Dispose()

    To Dispose the items

    Declaration
    public void Dispose()

    GetDropPosition(DragEventArgs, RowColumnIndex, ObservableCollection<Object>)

    Gets the dropping position of a dragging row.

    Declaration
    protected virtual DropPosition GetDropPosition(DragEventArgs args, RowColumnIndex rowColumnIndex, ObservableCollection<object> draggingRecords)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DragEventArgs args

    An Windows.UI.Xaml.DragEventArgs that contains the event data.

    RowColumnIndex rowColumnIndex

    Specified index on which the mouse is hovered.

    System.Collections.ObjectModel.ObservableCollection<System.Object> draggingRecords

    Specifies the dragging records.

    Returns
    Type Description
    DropPosition

    Returns appropriate drop position DropPosition if row can drop at the specified index otherwise none.

    OnAttach(SfDataGrid)

    Wiring the DataGrid events in OnAttach method.

    Declaration
    protected void OnAttach(SfDataGrid grid)
    Parameters
    Type Name Description
    SfDataGrid grid

    Specifies the SfDataGrid

    ProcessOnDragOver(DragEventArgs, RowColumnIndex)

    Occurs when the input system reports an underlying dragover event with this element as the potential drop target.

    Declaration
    protected virtual void ProcessOnDragOver(DragEventArgs args, RowColumnIndex rowColumnIndex)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DragEventArgs args

    An Windows.UI.Xaml.DragEventArgs that contains the event data.

    RowColumnIndex rowColumnIndex

    Specifies the row column index based on the mouse point.

    ProcessOnDragStarting(DragStartingEventArgs, RowColumnIndex)

    Occurs when a drag operation is initiated.

    Declaration
    protected virtual void ProcessOnDragStarting(DragStartingEventArgs args, RowColumnIndex rowColumnIndex)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DragStartingEventArgs args

    An Windows.UI.Xaml.DragStartingEventArgs that contains the event data.

    RowColumnIndex rowColumnIndex

    Specifies the row column index based on the mouse point.

    ProcessOnDrop(DragEventArgs, RowColumnIndex)

    Occurs when the input system reports an underlying drop event with this element as the drop target.

    Declaration
    protected virtual void ProcessOnDrop(DragEventArgs args, RowColumnIndex rowColumnIndex)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DragEventArgs args

    An Windows.UI.Xaml.DragEventArgs that contains the event data.

    RowColumnIndex rowColumnIndex

    Specifies the row column index based on the mouse point.

    ProcessOnDropCompleted(DropCompletedEventArgs)

    Occurs when a drag-and-drop operation is ended.

    Declaration
    protected virtual void ProcessOnDropCompleted(DropCompletedEventArgs args)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DropCompletedEventArgs args

    An Windows.UI.Xaml.DropCompletedEventArgs that contains the event data.

    ShowDragIndicators(DropPosition, RowColumnIndex, DragEventArgs)

    Sets drag indicators in appropriate position.

    Declaration
    protected virtual void ShowDragIndicators(DropPosition dropPosition, RowColumnIndex rowColumnIndex, DragEventArgs args)
    Parameters
    Type Name Description
    DropPosition dropPosition

    Indicates the drop position,based on that the indicators will shown.

    RowColumnIndex rowColumnIndex

    Specifies the rowColumn index based on mouse hover.

    Windows.UI.Xaml.DragEventArgs args

    An Windows.UI.Xaml.DragEventArgs that contains the event data.

    Implements

    System.IDisposable

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved