O usi un "for" normale (non un foreach) o aggiungi un contatore in questo modo:
.codice:int c=0; 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[c].Cells[0].Value = _e.NomeEsame; this.dataGridView1.Rows[c].Cells[1].Value = _e.Voto; this.dataGridView1.Rows[c].Cells[2].Value = _e.CFU; this.dataGridView1.Rows[c].Cells[3].Value = _e.Data; this.dataGridView1.Rows[c].Cells[4].Value = _e.Attivazione; c++; }