CSDN博客

img dcboy

DATAGRID鼠标移动变色

发表于2004/6/29 9:28:00  696人阅读

分类: ASP.Net

private void DataGrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
  {
   if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
   {
    e.Item.Attributes["onmouseover"] = "this.className=/'tdbg-dark/';";
    e.Item.Attributes["onmouseout"] = "this.className=/'tdbg/';";
    ((LinkButton)e.Item.FindControl("Lb_Del")).Attributes.Add("onClick","return confirm('你确定要删除这一项吗?');");
   }
  }

 

不错``

阅读全文
0 0

相关文章推荐

img
取 消
img