heppiedad
2023-04-27T08:58:03Z
I could implement succesfully drag and drop between two iGrids according to the sample: Drag-n-drop one row between 2 grids. However when it comes to implementing drag and drop items between iGrids that are on separate forms, i am stuck. The destination iGrid does not recognize the drop-event (OLECompleteDrag - OLEDragDrop - OLEDragOver).
Anyone an idea to solve that problem?
Igor/10Tec
2023-04-27T14:19:12Z
This may be a restriction of Access Forms. If so, we can do nothing with that.
heppiedad
2023-05-01T09:43:37Z
I’ve found a solution for dragging from FormB to formA

In FormA (destination for drop)
- Beside the vars
Private m_bDragging As Boolean
Private m_lDragRow As Long
Private m_bResetDragRow As Boolean
add a var Private m_sDragSource As String (needed to identify the dragsource = name or index of the foreign form)
- add a public sub
Public Sub subSetDrag(blnDragging As Boolean, lngDragRow As Long, blnResetDragRow As Boolean, strDragSource As String)
m_bDragging = blnDragging
m_lDragRow = lngDragRow
m_bResetDragRow = blnResetDragRow
m_sDragSource = strDragSource
End Sub

When initiating a drag, in FormB just call the FormA.subSetDrag from the FormB.MouseUp event, identifying the form and the iGrid-row
- in the FormA.MouseEnter event you are able to identify from which form the drag has been initiated