function showborder()
{
var len=document.all("GridView1").rows.length;
document.getElementById("GridView1").rows[len-1].cells[4].style.border="1px solid #0000FF";
alert(document.getElementById("GridView1").rows[len-1].cells[4].innerHTML);
}
protected void Page_Load(object sender, EventArgs e)
{
Button1.Attributes["onclick"] = "showborder()";
}