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

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

Java - Returning an array from a method to main -