title: how to refresh datagridview on parent form when child form closes
body: <p>i would like to know how to refresh my datagridview on frmClient automatically when frmUpdate which opens as .showDialog closes. i tried calling a refresh button click event in frmClient at frmUpdate form closing event and frmClient load but both didnt work. </p>
  
  <pre><code>      private void frmUpdate_FormClosing(object sender, FormClosingEventArgs e)
      {
      //     kryptonButton1_Click_1(null;null);
         frmClient_Load_1(null;null);
      }
  
  
  
    public void frmClient_Load_1(object sender, EventArgs e)
      {
  
         var connectionString = ConfigurationManager.ConnectionStrings["Pigen"].ConnectionString;
  
          connection = new MySqlConnection(connectionString);
  
          if (this.OpenConnection() == true)
          {
              MySqlCommand sqlCmd = new MySqlCommand("sp_clientgridview", connection);
              sqlCmd.CommandType = CommandType.StoredProcedure;
  
              mySqlDataAdapter = new MySqlDataAdapter(sqlCmd);
              DataSet DS = new DataSet();
              mySqlDataAdapter.Fill(DS);
              sqlCmd.ExecuteNonQuery();
              kryptonDataGridView1.DataSource = DS.Tables[0];
              kryptonDataGridView1.Columns[0].Visible = false;
              kryptonDataGridView1.Columns[2].Visible = false;
  
  
  
          }
  
  
      }
  </code></pre>