for (int i = 0; i < dataGridView1.Rows.Count; i++)
{
//bool sleected = false;
if (dataGridView1.Rows[i].Cells[3].Value != null)
{
selected.Add(i);
}
}
//string donew = "";
// line off error
textBox1.Text = ((String)dataGridView1.Rows[1].Cells[2].Value);
/* for (int i = 0; i < selected.Count; i++)
{
textAdded.Add((String)dataGridView1.Rows[0].Cells[2].Value);
// donew += (String)dataGridView1.Rows[selected[i]].Cells[2].Value;
}*/
我不断收到错误
无法将“System.Double”类型的对象转换为“System.String”类型
我能做些什么来克服这个问题?