日期:2014-05-17 浏览次数:21046 次
string[] row = temp.Split(' '); int n = row.Length / 4; listView = new ListView(); for (int m = 0; m < n; m++) { ListViewItem lvi = new ListViewItem(); lvi.Text = row[0 + m *4]; lvi.SubItems.AddRange(new string[]{ row[1 + m * 4],row[2 + m * 4],row[3 + m * 4];}); listView.Items.Add(lvi); }
------解决方案--------------------