Salve ragazzi, chi mi aiuta?
Come faccio ad aggiornare l'indice della riga:
codice:
foreach(Esame _e in this.studente.piano.ListaEsami)
{
//Scrivo sempre e solo in riga 0... devo iterare le righe... ma che indice posso usare?
this.dataGridView1.Rows[0].Cells[0].Value = _e.NomeEsame;
this.dataGridView1.Rows[0].Cells[1].Value = _e.Voto;
this.dataGridView1.Rows[0].Cells[2].Value = _e.CFU;
this.dataGridView1.Rows[0].Cells[3].Value = _e.Data;
this.dataGridView1.Rows[0].Cells[4].Value = _e.Attivazione;
}