更新时间:2023-11-23 16:22:16
终于找到了解决方案。但可怜的部分是我不确定它是如何工作的......
在Listview项目删除部分之前添加以下行解决问题
finally found solution on myself. But the poor part is i am not sure how it works...
added the below line before the Listview Items remove part which resolved the issue
listView1.Sorting = System.Windows.Forms.SortOrder.None;
PS:可能在重新创建listview项目之前我已将排序设置为NONE以解决我的问题。
P.S: May be before recreating listview items i settled the sorting in to NONE which resolves my issue.