Change headercell style of a row in datagrideview with foreach
<p>Current Code: </p>

<pre><code>int rowNumber = 1;

foreach (DataGridViewRow row in dgvUsers.Rows)
{
       row.HeaderCell.Style.BackColor = Color.Gray;
       row.HeaderCell.Style.SelectionBackColor = Color.Green;
       row.HeaderCell.Value = rowNumber.ToString();
    rowNumber++;
}
</code></pre>

<p>I want to change style of <code>headerCell</code>, but style of row don't change. why?</p>
