Link to home
Start Free TrialLog in
Avatar of the_balk
the_balk

asked on

dragdrop row from dw_1 overwriting dw_2 row

I am trying to dragdrop a selected row from dw_1 into dw_2 by overwriting a highlighted row in dw_2.  Basically, user clicks a row in dw_1 and drags the mouse over to dw_2 and highlights a row in dw_2 and unclicks.  This would take the row value from dw_1 and overwrite the highlighted row value in dw_2 without inserting a new row.

Example:
dw_1        dw_2
one         one
two         two
three       three
four        four

User drags value three from dw_1 over to dw_2 and overwrites two:
dw_1        dw_2
one         one
two         three (used to be two)
three       three
four        four

Thanks for any guidance you may be able to provide.
ASKER CERTIFIED SOLUTION
Avatar of Bhatti
Bhatti

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of the_balk
the_balk

ASKER

Thanks Bhatti!

I inserted your code and with a little tinkering and the addition of setitem code in the dragdrop event, it works perfectly.

Again, thank you for your time and help.