title: How to reload the data grid view during runtime c#
body: <p>I have reload the data for <code>data grid view</code> each time the <code>form</code> open.</p>
  <pre><code> Student_DetailEntities db = new Student_DetailEntities();
   private void Form1_Load(object sender, EventArgs e)
   {
       db.StudentTables.Load();
       studentTableBindingSource.DataSource = db.StudentTables.Local;
   }
  </code></pre>
  <p>To ensure the <code>data table</code> is <code>refresh</code> and <code>show</code> in <code>data grid view</code>, I have tried this code</p>
  <pre><code>private void refreshToolStripMenuItem_Click(object sender, EventArgs e)
  {
          Application.Restart();
          Environment.Exit(0);
  }
  </code></pre>
  <p>and I try</p>
  <pre><code>private void refreshToolStripMenuItem_Click(object sender, EventArgs e)
  {
          this.Controls.Clear();
          this.InitializeComponent();
  }
    
  </code></pre>
  <p>But the <code>data grid view</code> still <code>not reload</code>. Each time I <code>add</code> new <code>item</code>, I need to <code>close</code> and <code>open</code> the <code>form</code> again for it to show in <code>data grid view</code>.</p>