Link to home
Start Free TrialLog in
Avatar of gycitsupport
gycitsupport

asked on

How to Drag and Drop Rows in Datagridview?

Hi
I have a datagridview which is populated from a stored procedure and using the datagridview1.datasource=ds.Tables[0] syntax to populate it.  I have a list of names, each of which has a "position" identifier connected to it as a hidden column; so Mr A has number 1, Mr B has number 2 etc.  I want the user to be able to drag and drop Mr D (for example) up or down anywhere in the list and for the position index to be recalculated and the grid to refresh with the new information.  Is this possible or at least, something similar?

Hope this makes sense!
Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Jorge Sanchez
Jorge Sanchez
Flag of Ecuador image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gycitsupport
gycitsupport

ASKER

Thanks