Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to move the selected row of datagridview using up and down button and have to send the rowIndex to the database.

I have done by referring the code from the follow link and also done few changes to the code for some condition to satisfy



http://www.vbforums.com/showthread.php?t=508749[^]

I'm adding the data in DGV to a datatable and then sending the DT to my database. now I also want to add the row index into the DT and send it. Request to Share some ideas

Thanks in advance
Posted
Updated 22-Nov-11 23:47pm
v2

1 solution

its a good article for how to enable selecteion for a row in asp.net.

http://www.codeproject.com/KB/aspnet/GridviewExtender.aspx

inside your UP/DOWN button change the selected item's index as required and rebind the data to your grid.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900