title: Colouring datagrid rows
body: <p>I was wondering how to colour the first 8 rows of a datagridview. I have managed to sort the values in descending order and I wish to have the first 8 rows coloured to highlight the top 8 to the user, and I'm not sure how to go about doing this.</p>
  
  <pre><code>Dim count As Integer
  For count = 0 To datagridsort.RowCount - 1
    Do
      datagridsort.Rows(0).Cells(0).Style.BackColor = Color.Coral
      datagridsort.Rows(0).Cells(1).Style.BackColor = Color.Coral
    Loop Until count = 8
  Next
  </code></pre>