title: How can i find Last row in a gridview on RowDataBound
body: <pre><code> protected void gridview1_RowDataBound(object sender, GridViewRowEventArgs e)
          {
  
  
              **if (e.Row.RowIndex &gt;= gridview1.PageSize) // ROW FOOTER TOTAL**
              {
  
                  e.Row.BackColor = System.Drawing.Color.Firebrick;
                  e.Row.ForeColor = System.Drawing.Color.White;
  
              }
          }
  </code></pre>
  
  <p>This code works sometimes, someone can help me</p>
  
  <p>DM,cheers </p>