This example extends the example provided in the How to allow an end-user to move the rows in a grid up and down if the grid is bound to a DataTable article with drag and drop functionality.
Question Comments
Added By: Micha Ben-Efraim at: 6/11/2012 2:11:54 AM
I copied this example for reordering the element of a list bound to the control and it works almost perfectly. The problem is that the control doesn't scroll during D&D: the list is longer as the displayed window. If I select the first or the last item in the list (first/last row) and want o move to the last/first position, which is not visible, the view should scroll somehow in order to show the target drop row. But it doesn't do it when I move the cursor to the top/bottom of the view.
Can it
Is possible to make this with the AdvBandedGridView?
I've tryed to make the same but in the:
Private Sub GridControl1_DragOver(sender As System.Object, e As System.Windows.Forms.DragEventArgs) Handles GridControl1.DragOver
' If e.Data.GetDataPresent(GetType(GridHitInfo))
allways returns False, so never enters the IF.
Added By: softwaresupport@smec.com softwaresupport@smec.com at: 6/4/2014 5:43:37 AMHi created a new ticket for this implementation as i dont find that it works
Added By: softwaresupport@smec.com softwaresupport@smec.com at: 6/4/2014 5:44:03 AMHere is the ticket ID : T114366
Added By: Nikita (DevExpress Support) at: 6/4/2014 11:29:33 PMHello,
Ok, let's continue our discussion in this ticket.
Hi,
This works fine for me after I changed my "Order" column to decimal in my database.
I'd like to know how to change this value and make sure that RowUpdated() is fired though, like when I edit a row normally.
Thanks for this example.
M.Young
Added By: Svetlana (DevExpress Support) at: 2/6/2015 9:25:03 AM Hi,We are already working on your inquiry in the How to force row update thread you created. We will answer you there. Please do not create duplicate posts. Thank you for your understanding.