title: I can't paint the rows of another page in the gridview, asp.net
body: <p>I can't solve one thing, I want to paint some rows of the GridView depending on a column. I have no problems with this, but when I change the page, I can't get it to paint.</p>
  <p>This is how I do the pagination</p>
  <pre><code>    GridView2.PageIndex =  e.NewPageIndex;
          loadgrid();
          paintpagin(e.NewPageIndex);
  </code></pre>
  <p>So I try to paint it</p>
  <p>GridView2.PageIndex = newPageIndex;</p>
  <pre><code>        foreach (GridViewRow Rowe in GridView2.Rows)
          {
                  CheckBox Rc = (CheckBox)Rowe.FindControl(&quot;rdaprobar&quot;);
                  RadioButton Ri = (RadioButton)Rowe.FindControl(&quot;rdpendiente&quot;);
                  RadioButton Rd = (RadioButton)Rowe.FindControl(&quot;rdCandelar&quot;);
  
                  if (Rc.Checked == true)
                  {
                      GridView2.Rows[Rowe.DataItemIndex].BackColor = ColorTranslator.FromHtml(&quot;#bcf5be&quot;);
                  }
          }
  </code></pre>