JomarMark Tamargo

JomarMark Tamargo

  • NA
  • 27
  • 9.7k

transfer data value from gridview to other form

Jan 14 2016 8:41 AM
 
 
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)