private void editToolStripMenuItem_Click(object sender, EventArgs e) { EditMovie obj = new EditMovie(gridmovie.SelectedRows[0].Cells[0].Value.ToString()); obj.ShowDialog(); gridmovie.DataSource = new DBContextHelper().Get_All_Movies(); }
private void editToolStripMenuItem_Click(object sender, EventArgs e) { EditMovie editMovie = new EditMovie(dataGridView1.SelectedRows[0].Cells[0].Value.ToString()) { StartPosition = FormStartPosition.CenterScreen }; editMovie.ShowDialog(); dataGridView1.DataSource = new Database().GetMovies(); }