title: Set backcolor for specific cell in gridview in VB.net Visual Studio
body: <p>I have a fixed size grid and would like to specify the backcolor of specific cells within the grid, so not whole rows and not whole columns just a single cell or maybe a range of cells. Please see the screenshot below for and example of what I mean.</p>
  
  <p>Ideally I would like to do this via vb as I would ultimately like to alter the backcolor based on values selected from a dropdown list.</p>
  
  <p><img src="https://i.stack.imgur.com/SULNv.jpg" alt="enter image description here"></p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Based on the answer below I modified it until I got the below which worked.</p>
  
  <pre><code>GridView.Rows(n).Cells(n).BackColor = Drawing.Color.FromArgb(n, n, n)
  </code></pre>