Getting SubItem from listview

前端 未结 3 1109
梦毁少年i
梦毁少年i 2021-01-14 05:58

I am trying to get Subitem from a list view, I did this but doesn\'t work:

curItem1=listView2->Items[i]->Text;

curItem2=listView2->SubItem[i]->T         


        
3条回答
  •  旧巷少年郎
    2021-01-14 06:26

    ListViewItem selItem = listView1.Items[i];
    string txt = selItem.SubItems[index].Text;
    

    To get the Text is wrong in first line.

提交回复
热议问题