惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
腾讯CDC
Jina AI
Jina AI
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
GbyAI
GbyAI
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
小众软件
小众软件
M
MIT News - Artificial intelligence
MyScale Blog
MyScale Blog
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
月光博客
月光博客
L
LangChain Blog
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky
C
Check Point Blog
U
Unit 42
人人都是产品经理
人人都是产品经理

博客园 - 小于

如何减少silverlight XAP包的尺寸 C#下的插件体系探讨 ORM之我见 系统框架建设 安装windows服务的方法 log4net 日志管理 框架刷新,从一个框架刷新另一个 BSTR、char*和CString转换 金山词霸2005的注册码 卸载程序的制作步骤 移动手机短信业务查询 预览添加的图片 IEWebBrowser这个组件的execWB方法 从客户端检测到有潜在危险的Request.Form 值(.Net Framework1.1)的解决方案 一些网页代码 用Request.QueryString[] 出现的问题 请问关于在开发BS系统中,遇到了上传服务器数据的问题 在开发BS系统中,遇到了上传服务器数据的问题 请问上传到服务器的数据增氧保存好一些?
DataGrid控件的特效显示
小于 · 2005-08-12 · via 博客园 - 小于

1、交替显示颜色
private void CarInfo_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
   if(e.Item.ItemType==ListItemType.Item)
   {
    e.Item.Attributes.Add("onmouseover", "this.style.backgroundColor='yellow'");
    e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor='#EEEEEE'");
   }
   if(e.Item.ItemType==ListItemType.AlternatingItem)
   {
    e.Item.Attributes.Add("onmouseover", "this.style.backgroundColor='yellow'");
    e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor='Gainsboro'");
   }
}

posted @ 2005-08-12 16:10  小于  阅读(412)  评论()    收藏  举报