Hello Igor I have a small problem that I can't solve During a "drag and drop" operation.
I would like to select the cell (or row) hovered over during the DragOver event (and therefore highlight it) so that the user can clearly see in which cell the data will be copied.
Here is what I tried but without success
Private Sub IG_1_CellMouseDown(sender As Object, e As iGCellMouseDownEventArgs) Handles IG_1.CellMouseDown
Dim DD = IG_1.CellValues(e.RowIndex, e.ColIndex)
IG_1.DoDragDrop(DD, DragDropEffects.Copy)
End Sub
Private Sub IG_2_DragOver(sender As Object, e As DragEventArgs) Handles IG_2.DragOver
e.Effect = DragDropEffects.Copy
With RowMode = False
IG_2.PerformAction(iGActions.DeselectAllcells)
Dim CL As Integer = IG_2.Cells.FromPoint(e.X, e.Y).RowIndex
IG_2.SetCurCell(CL, 0) >>>> ERROR
OR with RowMode = True
IG_2.PerformAction(iGActions.DeselectAllRows)
Dim R As iGRow = IG_2.Rows.FromY(e.Y)
R.Selected = True >> It works but the line under the mouse never corresponds to reality
End Sub
Please tell me what is wrong
Very cordially
Stephane