I have one window - EditWindow ( object of class, which is inherit wx.Frame ), which contain Grid object (self.grid).
In this class i write this method:

```
def OnSubindexGridCellLeftClick( self, event ):
        ....
        dragSource = MyDropSource( self.grid )
        dragSource.SetData( data )
        dragSource.DoDragDrop()
        event.Skip()

```

and bind it in `__init__` of EditWindow :

```
self.grid.Bind( wx.grid.EVT_GRID_CELL_LEFT_CLICK, self.OnSubindexGridCellLeftClick )

```

in the another window - "VariableWindow" i have got a another grid - "VariablesGrid" and i determine the following class:

```
class VariableDropTarget(wx.TextDropTarget):
    def __init__(self, parent):
        wx.TextDropTarget.__init__(self)
        self.ParentWindow = parent

    def OnDropText(self, x, y, data):
        x, y = self.ParentWindow.VariablesGrid.CalcUnscrolledPosition(x, y)
        ....

```

In the another window i set drop target:

```
self.VariablesGrid.SetDropTarget(VariableDropTarget(self))

```

How i can hook some information of object - "VariablesGrid" at the moment, when i drop cursor from grid (which is situated in EditorWindow). I want to take information of data in VariablesGrid and how EditWindow can receive this information ?
sorry for my bad English.