开发者

Extract data in the order they're shown in the listview

开发者 https://www.devze.com 2023-03-17 10:52 出处:网络
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?

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;
    }
}
0

精彩评论

暂无评论...
验证码 换一张
取 消