不能这么写,因为删除后,之后的索引就变了(删除元素之后之后的索引全部减1)
看不到你前面的代码,你可以这么写foreach (int i in selectedRows.OrderByDescending(x => x))...
改成List *selectRows 你看对不对。。。懂的不是很多,粗了勿喷。