我的项目中有两种形式。在form1中,我有一个dataGridView,并在form2中有4个TextBoxes。我想要从一个DataGridview中使用CellMouseClick事件的变量中获得一个值,然后将它传递给Form2中的一个TextBox将数据从一个表单传递到另一个表单
我试过这个。
Form1上#它给我一个错误
public form(int id)
{
int x;
x = dataGridView1.CurrentRow.Cells[0].Value.ToString();
}
什么亚姆想在窗口2
,我该如何称呼它从另一种形式 – 2013-02-26 22:25:32
比它工作完美 – 2013-02-27 02:21:18