关于GridView 中当前行中变色!苦闷了好久啊! 是在GridView的 ItemDataBound 事件里面写哦,实例如下:private void dg_ItemDataBound(object sender,DataGridItemEventArgs e){颜色交替e.Item.Attributes.Add(\"onmouseover\",\"this.style.backgroundColor='seashell'\");if(e.Item.ItemType=ListItemType.Item){e.Item.Attributes.Add(\"onmouseout\",\"this.style.backgroundColor='#ffffff'\");}if(e.Item.ItemType=ListItemType.AlternatingItem){e.Item.Attributes.Add(\"onmouseout\",\"this.style.backgroundColor='seashell'\");}}
随机阅读
- 12.25是圣诞节也是我生日! 又是圣诞节又是生日
- 陕北道情戏照镜子 速求陕北民歌的歌词
- 从大环到一信求了花卉市场怎么走 西安有几个花卉市场,谁知道详细地址?
- 加工贸易银行保证金台账情况 简述加工贸易进口料件银行保证金台账制度的基本运作程序?
- 为什么建国后,北方的省份大多更改了名称,而南方却没有? 青岛武昌路右拐香港西路
- 歇武镇到共和 乐山有几个镇
- 浅谈供应链金融业务模式有哪些? 供应链管理业务模式
- 悉尼除了维多利亚女王大厦和皮特街外还有什么购物的地方? 悉尼维多利亚女王购物中心
- 死蟹蒸出来是什么样子 螃蟹死了后蒸出来味道会有变化吗
- 广州白云区四海一家自助餐 广州有哪些可以吃自助餐的地方?
- 成都市征地补偿安置实施办法 双流停气通知
- 节妇吟寄东平李司空师道古诗 表达爱意的诗词
- 污水井流槽设计规范 污水检查井必须做溜槽吗?不做可不可以?是不是强制性要求?
- 陕西生氽丸子 从西安带特产回去,带什么比较好
- 促黄体生成素、促卵细胞生成素多少为正常? 促黄体素与催卵
- 中国文化史吕思勉天津人民出版社 吕思勉的白话本国史和中国通史有什么本质上的差别?
- 六盘水公园路 从六盘水市中心怎么去玉舍森林公园?
- 红烧武昌鱼
- 中国宜兴款紫砂水仙盆 怎样选择一款合适又好看的陶瓷花盆
- 赵丽颖陈晓在新浪微博有没有互相关注 赵丽颖没有关注陈晓