只是不要在第一时间添加它?
foreach (ListViewItem HazPackErrItems in HazmatPackageErrorListview.Items) { string HazPackErrRow = " "; bool first = true; foreach (ListViewItem.ListViewSubItem HazPackErrSub in HazPackErrItems.SubItems) { if (first) first = false; else HazPackErrRow += " " + HazPackErrSub.Text + ","; } // Remove comma after last element of string. HazPackErrRow = HazPackErrRow.Substring(0, HazPackErrRow.Length - 2); MessageBox.Show(HazPackErrRow); // List concatenated subitems }