title: Refreshing Grid View without opening the application again
body: <p>Is there any way through which I can refresh the Grid View without closing the application and opening it again? I am trying to refresh the Grid View this way.</p>
  
  <pre><code> private void button1_Click(object sender, EventArgs e)
          {
              dataGridView1.Parent.Refresh();
  
          }
  </code></pre>
  
  <p>And I inserting into the <strong>Access Database</strong> this way,</p>
  
  <pre><code>private void button2_Click(object sender, EventArgs e)
          {
              //Setting up Connection String
              string connectionString1 = GetConnectionString();
              OleDbConnection myConnection1 = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source= C:\\Users\\Daffodils\\Documents\\WindowsFormsApplication11\\WindowsFormsApplication11\\WindowsFormsApplication11\\PersonDatabase.mdb");
              //OleDbConnection myConnection1 = new OleDbConnection(connectionString1);
              String insertString = "Insert Into PersonTable([FirstName],[LastName],[City],[Age]) Values ('" + "John" + "','" + "Gray" + "','" + "Toronto" + "','" + "50" + "')";
  
              using (myConnection1)
              {
                  OleDbCommand command = myConnection1.CreateCommand();
                  command.CommandText = insertString;
  
                  try
                  {
                      // openning a connection to the database / table
                      myConnection1.Open();
  
                      //// SQL commnd class
                      OleDbDataReader myDataReader1 = command.ExecuteReader(); // exists as a part of SQL command class
  
                      //Closing Database connection
                      myDataReader1.Close();
                      //Console.WriteLine("Data was added to the table !!!");
                      MessageBox.Show("Data was added to the table !!!");
                  }
                  // dealing with exceptions
                  catch (Exception ex)
                  {
                      MessageBox.Show(ex.Message);
                      //Console.WriteLine(ex.Message); // printing exception message to default output
                  }
              }
          }
  </code></pre>
  
  <p>I have tried using, <code>dataGridView1.EndEdit();</code> but still I have to close application and open it again.</p>