可可果

哈利是一只有白点的黑狗

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
 1     protected void ProductCreate_dg_ItemDataBound(object sender, DataGridItemEventArgs e)
 
2     {
 
3         //实现DataGrid的颜色变化
 4         if (e.Item.ItemIndex >= 0)
 
5         {
 
6             e.Item.Attributes["onMouseOver"= "javascript:this.bgColor='#ccffff';";
 
7             e.Item.Attributes["onMouseOut"= "javascript:this.bgColor='#ffffff';";
 
8         }
 
9     }
10 
11 //在ItemDataBound事件里实现
posted on 2007-10-17 14:38  可可果  阅读(293)  评论(0编辑  收藏  举报