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.  
Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s