API Documentation -> NtRowDraggingEventArgs

# NtRowDraggingEventArgs

Row dragging allows the user to change the vertical order of rows. When the user picks one row in a Flank Control (on the row header press Ctrl on the keyboard plus left mouse button) an event is raised. You can catch and cancel this event if you do not want to allow the dragging. Another event is raised when the user drops his selection. Again you can cancel the entire action by cancelling this event. If you organize your rows in categories, then the user can also pick full categories and drag them vertically with all rows within.
Please note that row dragging works in Flank Controls, only.
Suppose you have a Flank Control in your Form and want to prohibit row dragging. Then the following code within the Load() method of your Form will cover this task:

myFlankControl.beginRowDragging += (s, eventArgs) => { eventArgs.Cancel(); };

Class Hierarchy:

System.EventArgs

NtCancelEventArgs

NtRowDraggingEventArgs

Constructors:

Modifier | Name and Parameters | Description
--- | --- | ---
public | NtRowDraggingEventArgs ( List<NtDataObject> draggedDataObjects, long timeDeltaTicks ) | The only constructor. It takes as a parameter the NtDisplayObject this event is for.

Methods and Properties:

Modifier / Return Value | Name and Parameters | Description
--- | --- | ---
public void | Cancel ( ) | Marks this event as cancelled. Inherited from NtCancelEventArgs.
public NtDisplayObject | displayObject | When catching this event you can access this member to find out which NtDisplayObject caused the event.

See also:

NtCancelEventArgs
NtFlankControl.beginRowDragging
NtFlankControl.continueRowDragging
NtFlankControl.endRowDragging

Top API Documentation -> NtRowDraggingEventArgs © 2016 Bassaly