日期:2014-05-18  浏览次数:20710 次

listview数据
 
 
 

  有方法把listview中的一条数据移动到另一行么
比如:从第十行移动到第二行

------解决方案--------------------
ListViewItem a = this.listView1.Items[10];
this.listView1.Items.Remove(a);
this.listView1.Items.Insert(2,a);
------解决方案--------------------
可以通过改变listItem的index的值
------解决方案--------------------
先删除在添加
ListViewItem item = this.lstSource.Items[3];
this.lstSource.Items.Remove(item);
this.lstSource.Items.Insert(0, item);