例如 dataGridView 单元格中表格一中的单词是:one;two;three .....
我希望在文本框中的 form2 中单独显示:
text in textBox1: one
text in textBox2: two
text in textBox3: three
我该如何解析这个?
我以这种方式在 formOne 中填充数据网格:
foreach (DataGridViewCell cell in dataGridView1.SelectedCells)
{
string text = "";
for (int i = 0; i < emails.Length ;i++)
{
if (emails[i].ToString().Trim() != "")
{
text = text + emails[i] + ";" ;
dataGridView1.Rows[cell.RowIndex].Cells[col].Value = text;
}
}
}