Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在遍历 listView 中的项目:
for (int i = 0; i < ld.Items.Count; i++) { ld.Items[i].SubItems[0].Text = (i+1).ToString(); }
似乎它的迭代顺序与将项目添加到 listView 的顺序相同。我需要的是遍历项目以显示它们(例如在排序之后)。