2
Reply

transfer data value from gridview to other form

JomarMark Tamargo

JomarMark Tamargo

8 years ago
361
 
 
private void tsbDisplay_Click(object sender, EventArgs e)
{
NewContract renew = new NewContract();
renew.txtEnumber.Text = this.dgvEmpList.CurrentRow.Cells["Enumber"].Value.ToString();
renew.txtEname.Text = this.dgvEmpList.CurrentRow.Cells["Ename"].Value.ToString();
this.Close();
}
see image

Answers (2)