Extract data in the order they're shown in the listview
I have a listview and it can be ordered by clicking on the column's header, but how can I extr开发者_Go百科act the elements in the same order they are shown in the listview?
Thanks in advance.
for (int x = 0; x < listView1.Items.Count; x++)
{
if (listView1.Items[x].Selected)
{
string cc = listView1.SelectedItems[0].SubItems[2].Text;
}
}
精彩评论