title: datagridview is showing empty rows in windows form
body: <p>in my database there is a table called student. this table has 6 rows but datagridview of my windows form is showing 6 empty rows. I have tried several ways including  <code>studentdataGridView.AllowUserToAddRows = true/false;</code> but nothing is working. it shows empty rows.</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows.Forms;
  using System.Data.SqlClient;
  
  namespace varsityProject
  {
      public partial class report : Form
      {
          public report()
          {
              InitializeComponent();
          }
  
          private void report_Load(object sender, EventArgs e)
          {
              string connectionString = @"Server=.\SQLEXPRESS; Database = varsityproject; integrated Security = true";
              SqlConnection connection = new SqlConnection(connectionString);
              string query = "SELECT * FROM student";
              SqlCommand command = new SqlCommand(query, connection);
              connection.Open();
  
              SqlDataReader reader = command.ExecuteReader();
  
              List&lt;students&gt; stu = new List&lt;students&gt;();
              students student2 = new students();
  
              while (reader.Read())
              {
                  student2.id = (int)reader["id"];
                  student2.firstname = reader["firstname"].ToString();
                  student2.lastname = reader["lastname"].ToString();
                  student2.program = reader["program"].ToString();
                  student2.birthdate = reader["birthdate"].ToString();
                  student2.fathersname = reader["fathersname"].ToString();
                  student2.mothersname = reader["mothersname"].ToString();
                  student2.presentaddress = reader["presentaddress"].ToString();
                  student2.permanentaddress = reader["permanentaddress"].ToString();
                  stu.Add(student2);
              }
              reader.Close();
              connection.Close();
              studentdataGridView.DataSource = stu;
          }
      }
  }
  </code></pre>