62,242
社区成员




protected void GridViews_RowDataBound(object sender, GridViewRowEventArgs e)
{
这里加入
if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
{
e.Item.Attributes.Add("onmouseover", "color=this.style.backgroundColor;this.style.backgroundColor='#669988'");
e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor=color");
((LinkButton)(e.Item.Cells[3].Controls[0])).Attributes.Add("onclick", "return confirm('你确定要删除此信息吗?');");
}
}