Interface IGridRowDropService
Interface that must be implemented to allow dropping GridViewPayload
Namespace: Simplic.UI.GridView
Assembly: Simplic.UI.dll
Syntax
public interface IGridRowDropService
Methods
| Improve this Doc View SourceCanDrag(GridViewPayload)
Gets whether dragging is allowed
Declaration
bool CanDrag(GridViewPayload payload)
Parameters
Type | Name | Description |
---|---|---|
GridViewPayload | payload | Payload to check |
Returns
Type | Description |
---|---|
System.Boolean | True if drag and drop is allowed |
CanDrop(GridViewPayload, DataRow)
Checks whether dropping data in the the passed target is allowed
Declaration
bool CanDrop(GridViewPayload payload, DataRow targetRow)
Parameters
Type | Name | Description |
---|---|---|
GridViewPayload | payload | Payload which is currently dragged |
System.Data.DataRow | targetRow | Target row |
Returns
Type | Description |
---|---|
System.Boolean | True if drop is allowed |
Drop(GridViewPayload, DataRow, Action<DropResult>)
Drop data and create row
Declaration
void Drop(GridViewPayload payload, DataRow targetRow, Action<DropResult> completedCallback)
Parameters
Type | Name | Description |
---|---|---|
GridViewPayload | payload | Payload to drop |
System.Data.DataRow | targetRow | Target row |
System.Action<DropResult> | completedCallback | Completed call back |