test code

  1.         protected void GridView2_RowCreated(object sender, GridViewRowEventArgs e)
  2.         {
  3.             int m = e.Row.Cells.Count;
  4.             if (e.Row.RowType == DataControlRowType.Footer)
  5.             {
  6.                 for (int i = m  1; i >= 1; i–)
  7.                 {
  8.                     e.Row.Cells.RemoveAt(i);
  9.                 }
  10.                
  11.                 e.Row.Cells[0].ColumnSpan = m;
  12.                 e.Row.Cells[0].Style.Add(“text-align”, “center”);
  13.                 e.Row.Cells[0].Text=“<a style=\”text-align:center;\” href=\”updateContactIDs.asp\”>Update Contact</a>”;
  14.             }  
  15.         }
  16.  

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*