title: How to set the background color for specified row in datagridview?
body: <p>I want to set the background color for specified Row in datagridview ..
  My need is i have a for loop <code>(i=0;i&lt;10;i++)</code> .Inside this for loop i write the logic 
  as</p>
  
  <pre><code>if(i=1)
  {
  //Want to Set Color For This Specified Row..
  dataGridView1.SelectedRows[1].DefaultCellStyle.SelectionBackColor = Color.Yellow;
  }
  
  if(i=1)
  {
  //Want to Set Color For This Specified Row..
  dataGridView1.SelectedRows[2].DefaultCellStyle.SelectionBackColor = Color.Blue;
  }
  
  
  if(i=1)
  {
  //Want to Set Color For This Specified Row..
  dataGridView1.SelectedRows[3].DefaultCellStyle.SelectionBackColor = Color.Red;
  }
  </code></pre>
  
  <p>But i didn't get the expected o/p . I hope U understand My need . Please Help Me.</p>