private void dbPlayEvents_SelectedCellsChanged(object sender, SelectedCellsChangedEventArgs e) { var dg = sender as DataGrid; var index = dg.SelectedIndex; tblkPlayerAdjustments.Text = ""; tblkGameComments.Text = ""; dgVisitingPlayers.ItemsSource = RetrieveData.RetrieveBeventPlayerLineUp(PlayBeventInformation[index].EventNum, 0); dgHomePlayers.ItemsSource = RetrieveData.RetrieveBeventPlayerLineUp(PlayBeventInformation[index].EventNum, 1); dgVisitingRunsHitsErrors.ItemsSource = RetrieveData.RetrieveBeventCounts(PlayBeventInformation[index].EventNum, 0); dgHomeRunsHitsErrors.ItemsSource = RetrieveData.RetrieveBeventCounts(PlayBeventInformation[index].EventNum, 1); tblkPlayerAdjustments.Text = RetrieveData.RetrieveBeventPlayerAdjustments(index, PlayBeventInformation[index].EventNum); tblkGameComments.Text = RetrieveData.RetrieveBeventGameComments(PlayBeventInformation[index].EventNum); imgRunnersOnBaseDiagram.DataContext = PlayBeventInformation[index]; lblRunnerDiagram.Content = "At Bat - " + PlayBeventInformation[index].TeamName; }