public void UpdateChoices() { if (currentResults == null) { return; } int i = this.dgvResults.CurrentCell.RowIndex; if (i < 0 || i >= this.currentResults.Count) { return; } var result = this.currentResults[i]; List <Choice> choices = SQLConnections.QueryChoices(result.ID, true); this.dgvChoices.Rows.Clear(); foreach (var choice in choices) { this.dgvChoices.Rows.Add(choice.Question, choice.IsTrue ? "Đúng" : "Sai", choice.Answer); } }