How do you drag/drop before/after in a gridview?
When draging from within a gridview, to the same gridview, I've noticed with the "draged" item (InvoiceItem, for me) when draged over the top of a particular row, it says
Drop Before xyz
And if you drag from the from the middle/towards the end it says Drop Insert after xyz
Now I can easily get a reference to the two row's (and the backing entities via their DataContexts')
e.GetElement<GridViewRow>(E.Options.CurrentDragPoint)
e.Source
1. But how can I tell if I'm suppose to drop before/after? And can I customize what it displays ? ( e.g. Right now it is showing DataContext.ToString() )
2. Also, am I doing this correctly?
(I'm manually ~reordering, by changing a line number value on my Entities)
When draging from within a gridview, to the same gridview, I've noticed with the "draged" item (InvoiceItem, for me) when draged over the top of a particular row, it says
Drop Before xyz
And if you drag from the from the middle/towards the end it says Drop Insert after xyz
Now I can easily get a reference to the two row's (and the backing entities via their DataContexts')
e.GetElement<GridViewRow>(E.Options.CurrentDragPoint)
e.Source
1. But how can I tell if I'm suppose to drop before/after? And can I customize what it displays ? ( e.g. Right now it is showing DataContext.ToString() )
2. Also, am I doing this correctly?
(I'm manually ~reordering, by changing a line number value on my Entities)