View previous topic :: View next topic |
Author |
Message |
vanchan
Joined: 05 Feb 2007 Posts: 8
|
Posted: Tue Jul 24, 2007 7:31 pm Post subject: Dragging child records to another parent |
|
|
Parent / Child relationships are established using a key that is common to both records. In my Dataset bound vt, I want to be able to drag a child record from one parent to another. How is the key field in the child updated to reflect the new parent? OnDrop? |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Jul 24, 2007 11:11 pm Post subject: |
|
|
The field in the child record that identifies the parent record is changed in the OnDrop event to the new parent value. This is done automatically for you if you set AllowDrag to true for the child row binding and AllowDropOnRow for the parent row binding. If you have a single table with a recursive relationship then set AllowDrag and AllowDropOnRow to true for the row binding. _________________ Infralution Support |
|
Back to top |
|
|
|