List<string> a = new List<string> {};
foreach (DataGridViewCell cell in dgvC.SelectedCells)
{
a.Add(cell.Value.ToString());
}
string line = string.Join(",", a.ToArray());
MessageBox.Show(line);
MyCellsValues 是 1 2 3 4 5
为什么我的字符串是 5 4 3 2 1
多么愚蠢的行为!