Click here to Skip to main content
15,886,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a listview with three columns and i have added 4 records in the listview.
I would like to get the value of the 2nd column value of each records.How to implement it?
Posted
Comments
Kenneth Haugland 17-Aug-12 13:43pm    
WinForm or WPF, It dosent really matter if is binded in code behind though.
Shankar23G 17-Aug-12 13:46pm    
I can't understand what you said?
[no name] 17-Aug-12 14:08pm    
What is it that you have tried?

1 solution

you can try this code

C#
int i=0;
while (i < listView1.SelectedItems.Count)
{
               x = listView1.Items[i].SubItems[1].Text.ToString();
               i++;
}


Try and revert back
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900