Form2 form2=new Form2();form2.Owner=this;form2.Show();Form2 里面获销裂拿取如下Form1 form1=(Form1)this.Owner;int i=form1.dataGridView.Rows.Count;//这亏搭句源卜就是访问form1的dataGridview1