c# - How to swap two rows in a ListView details view? -


what simplest way swap items in listview?

my scenario have arranging method.

sample: wanted change element in 1st row or index 0 2nd row or index 1

listview items starting order:

  • |hello|hi|
  • |12345|12|

after swap

  • |12345|12|
  • |hello|hi|

how can done?

did try remove listviewitem n listview, keeping reference of course, insert @ position n-1.

i did not try out if remember there listview.items.insert or addat takes index parameter , listviewitem add.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -