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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

31033 Jun 29,2005 05:03 AM Jun 30,2005 08:36 AM Windows Forms 2
loading
Tags: GridControl
Sharad Sharma
Asked On June 29, 2005 05:03 AM

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

Administrator [Syncfusion]
Replied On June 29, 2005 05:15 AM

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.

Sharad Sharma
Replied On June 30, 2005 08:36 AM

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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;