((DataGridView)regform.Controls["LfileList"]).Rows.Add(this.Sfilelist.Rows[0].Cells[3].Value.ToString());
                                ((DataGridView)regform.Controls["DV1"]).Rows.Add(this.Sfilelist.Rows[0].Cells[3].Value.ToString());相同的两行代码,一个LfileList是放在TabControl中就报错,
错误信息:Object reference not set to an instance of an object.
另外一个直接在Form中执行就没有问题,大家帮忙看一下。