protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
//如果是绑定数据行
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("ondblclick", "window.location.href='tjdetail.aspx?zbbh=" + this.GridView1.DataKeys[e.Row.RowIndex].Value + "'");
// e.Row.Attributes["onmouseover"] = "this.style.backgroundColor='Red';this.style.cursor='hand';";
// e.Row.Attributes["onmouseout"] = "this.style.backgroundColor='#94b253';this.style.color='Black';";
}
}
{
//如果是绑定数据行
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("ondblclick", "window.location.href='tjdetail.aspx?zbbh=" + this.GridView1.DataKeys[e.Row.RowIndex].Value + "'");
// e.Row.Attributes["onmouseover"] = "this.style.backgroundColor='Red';this.style.cursor='hand';";
// e.Row.Attributes["onmouseout"] = "this.style.backgroundColor='#94b253';this.style.color='Black';";
}
}