private async void gridOMDB_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { var selectedMovie = gridOMDB.Rows[e.RowIndex]; string title = selectedMovie.Cells[0].FormattedValue.ToString(); string year = selectedMovie.Cells[1].FormattedValue.ToString(); string type = selectedMovie.Cells[2].FormattedValue.ToString(); // save new movie var savedMovie = await _APIService.AddNewMovie(title, year, type); // update local file APIService.movies.Add(savedMovie); // update data table UpdateMyListDataSource(); tabControl.SelectedTab = tabMyList; }