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

推荐订阅源

N
News and Events Feed by Topic
WordPress大学
WordPress大学
Vercel News
Vercel News
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
小众软件
小众软件
L
LangChain Blog
雷峰网
雷峰网
D
DataBreaches.Net
博客园 - 三生石上(FineUI控件)
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Tor Project blog
NISL@THU
NISL@THU
Scott Helme
Scott Helme
量子位
S
Security Affairs
T
Threat Research - Cisco Blogs
博客园_首页
云风的 BLOG
云风的 BLOG
D
Docker
AWS News Blog
AWS News Blog
腾讯CDC
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
U
Unit 42
Recent Announcements
Recent Announcements
Apple Machine Learning Research
Apple Machine Learning Research
G
Google Developers Blog
T
The Exploit Database - CXSecurity.com
MongoDB | Blog
MongoDB | Blog
Stack Overflow Blog
Stack Overflow Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
L
LINUX DO - 热门话题
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The Last Watchdog
The Last Watchdog
C
Cybersecurity and Infrastructure Security Agency CISA
IT之家
IT之家
W
WeLiveSecurity
P
Privacy & Cybersecurity Law Blog
F
Full Disclosure
L
Lohrmann on Cybersecurity
The Hacker News
The Hacker News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Y
Y Combinator Blog
S
Security @ Cisco Blogs
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Check Point Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
N
News and Events Feed by Topic
PCI Perspectives
PCI Perspectives
I
InfoQ

博客园 - 一滴水

PHP基础学习(1)-Win2003下安装配置PHP 在右键菜单中添加 Dos cmd窗体,方便使用(意译) HTML转义字符表[zz] - 一滴水 - 博客园 SQLServer2000发生错误1069(由于登陆失败而无法启动服务)的解决方案[zz] - 一滴水 - 博客园 [转载]Javascript的IE和Firefox兼容性汇编 - 一滴水 - 博客园 Hibernate+mysql 乱码问题。。。 关于eclipse中cvs标记的[csdn] [Hibernate]在用hibernate3.0进行查询时,java.lang.NoClassDefFoundError: antlr/ANTLRException【问题记录】 js 文件的编码问题!! 【解决了】 我遇到的一些问题【解决了贴出来当积累了】 获得插入记录标识号的示例 读取Excel表格中的数据[copy] 如何得到服务器端数据库列表 并 备份和恢复数据库 [copy] 将 XML 文件做为数据源绑定到控件 单值数据绑定示例 网上整理 Web JS 通用 呵呵[还会陆续添加] 如何在DataGrid控件中删除最后一页的最后一记录 !!! DataGrid中添加自动编号 关于使用docuemnt.write问题
鼠标移到DataGrid的那行则更改那行的颜色!!!
一滴水 · 2005-03-30 · via 博客园 - 一滴水

private void DataGrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
  
{
        
if(e.Item.ItemType == ListItemType.Item  || e.Item.ItemType == ListItemType.AlternatingItem)
       
{
          
//添加自定义属性,当鼠标移过来时设置该行的背景色为"6699ff",并保存原背景色
         e.Item.Attributes.Add("onmouseover","StyleColor=this.style.backgroundColor;this.style.backgroundColor='#6699ff'");
         
//添加自定义属性,当鼠标移走时还原该行的背景色
    e.Item.Attributes.Add("onmouseout","this.style.backgroundColor=StyleColor");

   }
 
  }