首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

去listview (分group)中插入记录问什么都会出现在最后

2011-12-19 
往listview (分group)中插入记录问什么都会出现在最后?ListViewItemlvitemnewListViewItem( testtwo )

往listview (分group)中插入记录问什么都会出现在最后?
ListViewItem   lvitem   =   new   ListViewItem( "test   two ");
lvitem.SubItems.Add( "4 ");
lvitem.Group   =   this.listView1.Groups[0];  
this.listView1.Items.Insert(index,   lvitem);

不管index设为多少,好像插入的记录都会出现在最后,而其index属性的确为我所设置的,为什么会没有出现在我所要插入的位置?

[解决办法]
试了下,好像是这样的。。
不明白ING,来学习下^_^
[解决办法]
关注!!呵呵!!
[解决办法]
有没有人解决过?偶又试过,调不出来。。。

热点排行