private void button4_Click_1(object sender, EventArgs e) { FormRubric h = new FormRubric(); this.Hide(); h.Show(); }
private void button2_Click(object sender, EventArgs e) { int index = dataGridView1.SelectedRows[0].Index; DataGridViewRow selectedRow = dataGridView1.Rows[index]; string Id = Convert.ToString(selectedRow.Cells["Id"].Value); string Details = Convert.ToString(selectedRow.Cells["Details"].Value); FormRubric h = new FormRubric(Details, Id); this.Hide(); h.Show(); }