Пример #1
0
        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();
            }
        }
Пример #2
0
        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();
            }
        }