View previous topic :: View next topic |
Author |
Message |
msalas
Joined: 06 Dec 2005 Posts: 1
|
Posted: Tue Dec 06, 2005 10:53 pm Post subject: Allow Drag Above or Below Row? |
|
|
Perhaps I'm misunderstanding how this feature is intended to work? In my own test project as well as the ADO.Net Dataset Browser sample, I cannot drag a child node above or below another child node anywhere in the heirarchy. In fact the only place I can drag a child node is directly onto another parent of the same type. And in that case it inserts it at the end of that parent's child list. Can I use drag and drop to change the order of the children in a given parent? I have set the AllowDrag, AllowDropAboveRow, AllowDropBelowRow, and AllowDropOnRow properties to True for every data binding in the control. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Dec 07, 2005 10:09 am Post subject: |
|
|
The DataBrowser sample does not use the drag above/below options because ADO.NET data tables do not allow positioning of rows within the data table. The position of the row with the table view is determined by the sort order for the view. Thus all you can really do is move rows between parents.
If you use Object Binding with an array list (or some other list that supports inserting items at specific indices) as a datasource then you should be able to use the drag above/below options to postion the dragged item. _________________ Infralution Support |
|
Back to top |
|
|
|