Exemplo n.º 1
0
        protected override void button1_Click(object sender, EventArgs e)
        {
            FrmStudentEdit frm = new FrmStudentEdit();

            frm.ShowDialog();
            refresh();
        }
Exemplo n.º 2
0
        protected override void button2_Click(object sender, EventArgs e)
        {
            Students       std = (Students)dataGridView1.SelectedRows[0].DataBoundItem;
            FrmStudentEdit frm = new FrmStudentEdit(std);

            frm.ShowDialog();
            refresh();
        }