title: refresh data grid view after updating in vb.net
body: <p>i have a data grid view and details for a particular table.i update the details, But it doesn't get updated in the data grid view?my update statement works properly because, once i exit the project, it gets updated.</p>
  
  <pre><code>cmd.CommandText = "update emp_tbl set sal= '" &amp; SalTextBox.Text &amp; "' where id='" &amp; id &amp; "'"
  </code></pre>
  
  <p>table name: <code>emp_tbl</code></p>
  
  <p>datagridview: <code>emp_tbldatagridview</code></p>
  
  <p>update button :</p>
  
  <pre><code>cn.Open()
  
  cmd.CommandText = "update emp_tbl set sal= '" &amp; SalTextBox.Text &amp; "' where id='" &amp; id &amp; "'"
  
  cmd.ExecuteNonQuery()
  cn.Close()
  </code></pre>