We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Moving Row(s) (using drag and drop) within GDBG

Is there some way to move one or more selected rows within a GridDataBoundGrid using Drag and drop operation. Thanks Sharad

2 Replies

AD Administrator Syncfusion Team June 29, 2005 09:15 AM UTC

It will be tricky. The main reason is that you cannot easily re-order rows (and maintain this order) in a sorted DataView, as the DataView wants to immediately re-sort things as soon as some change messes up the sort order. You can do things like add an extra DataColumn to your DataTable and use that column to always maintain a particular sort order. Here is a KB link on doing this. http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=98 Once you have some kind of support for maintaining arbitrary row orders in your GridDataBoundGrid, then you can handle the Control DragDrop events to move the rows using D&D. Or, you could capture the mouse in MouseMove to directly manage the UI part of moving the rows.


SS Sharad Sharma June 30, 2005 12:36 PM UTC

Thanks Clay Burch, I downloaded att98.zip and reworked with my code and the problem is solved. Thanks again Take care Bye Kapil >It will be tricky. The main reason is that you cannot easily re-order rows (and maintain this order) in a sorted DataView, as the DataView wants to immediately re-sort things as soon as some change messes up the sort order. > >You can do things like add an extra DataColumn to your DataTable and use that column to always maintain a particular sort order. Here is a KB link on doing this. http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=98 > >Once you have some kind of support for maintaining arbitrary row orders in your GridDataBoundGrid, then you can handle the Control DragDrop events to move the rows using D&D. Or, you could capture the mouse in MouseMove to directly manage the UI part of moving the rows.

Loader.
Live Chat Icon For mobile
Up arrow icon