c#,winform,listView获得第1,2,3列的值,listView获得多列的值,获得一行

or (int i = 0; i < listView1.Items.Count; i++)
                {
                    if (listView1.Items[i].Selected)
                    {
                        MessageBox.Show(listView1.Items[i].SubItems[0].Text.ToString().Trim());
                        MessageBox.Show(listView1.Items[i].SubItems[1].Text.ToString().Trim());
                        MessageBox.Show(listView1.Items[i].SubItems[2].Text.ToString().Trim());  
                    }
                }

 

 

黑色头发  http://heisetoufa.iteye.com

你可能感兴趣的:(C++,c,C#,WinForm)