i have a grid view
i want to swap its rows using drag and drop and then update those swapped row new row index to database on button click.
kindly suggest the way
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Munesh SharmaRank #174 · 13.9K reputationPosted Apr 24, 2014, 1:20 AM EDT
http://www.aspdotnet-suresh.com/2012/09/how-to-convert-rows-to-columns-in-sql.html
nishant ranjanRank #4,961 · 317 reputationPosted Apr 24, 2014, 1:32 AM EDT
suppose there are 5 rows in grid view with value as
a
b
c
d
e
now i drag c to first row, b to second last row, then gridview should become as
c
a
d
b
e
the row swaping should be by dragging the row to desired location in gridview. and at last i should get row index value of each element on code behind i.e.,
c----1
a----2
d----3
b----4
e----5
AshishRank #8,652 · 218 reputationPosted Apr 24, 2014, 1:40 AM EDT