Esempio n. 1
0
 private void StudentsButton_Click(object sender, EventArgs e)
 {
     dataGridView.Rows.Clear();
     dataGridView.ColumnCount     = 3;
     dataGridView.Columns[0].Name = "Id";
     dataGridView.Columns[1].Name = "Name";
     dataGridView.Columns[2].Name = "Email";
     String[][] ds = controller.getStudents();
     for (int i = 0; i < ds.Length; i++)
     {
         dataGridView.Rows.Add(ds[i]);
     }
 }