我有表格,它是这样的

那nomor tabungan就是自动生成
问题是,我想nomor nasabah通过datagridview从不同的表单中获取价值。看看下面的图片

有一个按钮ambil来检索nomor nasabah值,并将它们传递给nomor nasabahtextbox.text
nomor_nasabah我已成功从 datagridview中获取值。如下图所示

我如何将值传递给tambah tabungan. nomor nasabah文本框.文本?我已将文本框修饰符设置为public,因此当我单击ambil按钮时,文本框会自动填充检索到的值。
我怎么做 ?
我做了以下代码,以及为什么它不起作用
这是ambil按钮代码
private void button2_Click(object sender, EventArgs e)
{
Tabungan.Tambah tambahtabungan = new Tabungan.Tambah();
//nomornya is the retrieved value
tambahtabungan.textBox2.Text = nomornya;
}
这是cari按钮代码,用于显示getCustomer表单
private void button2_Click(object sender, EventArgs e)
{
if (getcustomer == null || getcustomer.IsDisposed)
{
getcustomer = new getNasabah();
getcustomer.Show();
}
}