General information
Category:
Coding, syntax & commands
Thanks! That's what I needed. Here's the code that I use. It works quite nicely:
LPARAMETERS oSource, nXCoord, nYCoord
LOCAL nRow, nCol
nRow = 1
nCol = 1
IF this.GridHitTest( nXCoord, nYCoord, 3, @nRow, @nCol )
= this.ActivateCell( nRow, nCol )
this.Column1.Text1.Value = oSource.Value
oSource.Value = '* ' + ALLTRIM( oSource.Value ) && Let's user know it's been selected
this.Refresh()
ENDIF
This code is in the DragDrop method of the Grid, not the Text1 object.
>I have not tested this but it may be a possible starting point. Look into the GridHitTest Method in combination with MouseMove/Dragover.
>
>HTH,
>
>Richard
>
>>Hi All -- Is there a way to drag and drop onto a grid so that the cell under the mouse recieved the effect of the drop rather than the active row in the grid. For example, in the target grid, row six is selected, but you drag an object and drop it over row 10 of the grid. How can you get the data in row 10 to accept the drop rather than row six?
>>
>>TIA
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only