title: Where do I put code of highlighting of last added record?
body: <p>My program has two forms - <code>MainForm(Mainform)</code> and <code>SubForm(Add_Student)</code>. <code>MainForm</code> has <code>Student_DataGridView</code> which shows all records of students. <code>SubForm(AddStudent)</code> adds new students.</p>
  
  <p>My task is  to add new student with <code>SubForm(Add_Students)</code>. I done it!:)</p>
  
  <p>Next task is to highlight the newest, latest record in <code>Student_DataGridView</code> on <code>MainForm</code>. I done it!:)</p>
  
  <p>But I don't know where do I put code of highlighting of last added record. I tried to put in the event: </p>
  
  <pre><code>private void MainForm_Activated(object sender, EventArgs e)
  {
    Student_DataGridView.Rows.Count - 1.Selected = true
  }
  </code></pre>
  
  <p>But it works always when <code>MainForm</code> is shown. And I need to show only after adding new record.  Which is event?</p>
  
  <p>Or where do I put code better?</p>