title: Change the row color in DataGridView based on the quantity of a cell value
body: <p>I need to change the color of a row in datagridview but my code is not working for me.
  I always get a error that says "Column named Quantity: cannot be found. Parameter name: columnName" </p>
  
  <p>Here is my code:</p>
  
  <pre><code>Private Sub DataGridView1_CellFormatting(ByVal sender As Object, ByVal e As DataGridViewCellFormattingEventArgs) Handles DataGridView1.CellFormatting
      For i As Integer = 0 To Me.DataGridView1.Rows.Count - 1
          If Me.DataGridView1.Rows(i).Cells("Quantity:").Value &lt; 5 Then
              Me.DataGridView1.Rows(i).Cells("Quantity:").Style.ForeColor = Color.Red
          End If
      Next
  End Sub
  </code></pre>
  
  <p>Please help me fix it. Thank you.</p>