private void btnHistoryMandehEdit_Click(object sender, EventArgs e) { if (grdDataViewHistory.Rows.Count > 0) { frmStdMandehEdit fsmhe = new frmStdMandehEdit(); fsmhe.txtstdno.Text = grdDataViewHistory["stdno", 0].Value.ToString(); fsmhe.ShowDialog(); fillHistoryInfo(); } }
private void button1_Click(object sender, EventArgs e) { if (dataGridView1.Rows.Count > 0) { frmStdMandehEdit fsmhe = new frmStdMandehEdit(); fsmhe.txtstdno.Text = dataGridView1["stdno", 0].Value.ToString(); fsmhe.ShowDialog(); btnfilter.PerformClick(); } }