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

推荐订阅源

Cisco Talos Blog
Cisco Talos Blog
阮一峰的网络日志
阮一峰的网络日志
云风的 BLOG
云风的 BLOG
D
Docker
Vercel News
Vercel News
IT之家
IT之家
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
V
Visual Studio Blog
Engineering at Meta
Engineering at Meta
腾讯CDC
Google DeepMind News
Google DeepMind News
I
InfoQ
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
The GitHub Blog
The GitHub Blog
博客园 - Franky
The Cloudflare Blog
A
About on SuperTechFans
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
T
Tenable Blog
P
Proofpoint News Feed
Recorded Future
Recorded Future
Security Latest
Security Latest
H
Hackread – Cybersecurity News, Data Breaches, AI and More
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 聂微东
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Google Online Security Blog
Google Online Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Simon Willison's Weblog
Simon Willison's Weblog
The Last Watchdog
The Last Watchdog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
News and Events Feed by Topic
TaoSecurity Blog
TaoSecurity Blog
U
Unit 42
The Hacker News
The Hacker News
Martin Fowler
Martin Fowler
T
Threat Research - Cisco Blogs
NISL@THU
NISL@THU
F
Full Disclosure
M
MIT News - Artificial intelligence
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
V
V2EX
Project Zero
Project Zero

博客园 - 赵国亮

诚聘:网站高级程序员 诚聘:网站高级程序员 RSS2.0规范(转) 一则深有寓意的故事! 心情不爽,贴几张以前工作的照片 有效沟通,让程序员不再是兔子! 工作一年 离开公司... VB.NET验证码生成代码 - 赵国亮 - 博客园 ASP与ASP.NET互通COOKIES的一点经验 面向对象设计需要遵循的一些基本原则 ASP.NET大型OA中常用的一些报表生成,压缩,下载等操作代码 数据结构学习笔记 在DataGrid中实现无刷新编辑列的代码(VB.NET 2003) 实现向指定Url提交信息并取得返回信息 - 赵国亮 - 博客园 在不同的文本框回车触发指定按钮代码 - 赵国亮 - 博客园 页面选项卡代码 - 赵国亮 - 博客园 图片文件上传入SQL库及显示代码 - 赵国亮 - 博客园 一个比较帅的页面加载效果! - 赵国亮 - 博客园
在DataGrid中实现鼠标指定列特殊显示的代码(VB.NET 2003)
赵国亮 · 2006-06-16 · via 博客园 - 赵国亮

Posted on 2006-06-16 08:54  赵国亮  阅读(664)  评论(2)    收藏  举报

        在DataGrid中的ItemDataBound事件中加入以下代码即可实现鼠标指定列的特殊显示,当鼠标移到DataGrid中一条数据时,该条数据以特殊颜色显示,当鼠标移开时,该条数据又以另外一种特殊颜色显示。
    If (e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem) Then
        e.Item.Attributes.Add("onmouseover", "this.style.backgroundColor='#E4EDF9'")
        e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor='#F1F3F5'")
    End If