System.Collections.ArrayList s1 = new System.Collections.ArrayList();
for (int i = 0; i < dataGridView1.Rows.Count; i++)//循环dataGridView1的行
{
s1.Add(dataGridView1.Rows[i].Cells[0].Value.ToString ());//将dataGridView1中的第一列存入s1中
}
出现未处理的“System.NullReferenceException”类型的异常出现在 GND_GearCNC.exe 中。
其他信息: 未将对象引用设置到对象的实例。