title: How to enable DataGridView sorting when user clicks on the column header?
body: <p>I have a datagridview on my form and I populate it with this:</p>
  
  <pre><code>dataGridView1.DataSource = students.Select(s =&gt; new { ID = s.StudentId, RUDE = s.RUDE, Nombre = s.Name, Apellidos = s.LastNameFather + " " + s.LastNameMother, Nacido = s.DateOfBirth })
                                     .OrderBy(s =&gt; s.Apellidos)
                                     .ToList();
  </code></pre>
  
  <p>Now, I use the s.Apellidos as the default sort, but I'd also like to allow users to sort when clicking on the column header.</p>
  
  <p>This sort will <strong>not</strong> modify the data in any way, it's just a client side bonus to allow for easier searching for information when scanning the screen with their eyes.</p>
  
  <p>Thanks for the suggestions.</p>