private void button1_Click(object sender, EventArgs e)
{
string StudentNo = dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[0].Value.ToString();
frmEdit EditForm = new frmEdit();
EditForm.StudentNo;
EditForm.ShowDialog();
}
You probably meant to write
EditForm.StudentNo = StudentNo;
instead of just
EditForm.StudentNo;
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments