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

推荐订阅源

D
DataBreaches.Net
Engineering at Meta
Engineering at Meta
C
Cisco Blogs
H
Heimdal Security Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Securelist
N
Netflix TechBlog - Medium
雷峰网
雷峰网
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
The Exploit Database - CXSecurity.com
I
InfoQ
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Project Zero
Project Zero
Spread Privacy
Spread Privacy
Stack Overflow Blog
Stack Overflow Blog
The GitHub Blog
The GitHub Blog
T
Threatpost
The Hacker News
The Hacker News
WordPress大学
WordPress大学
AWS News Blog
AWS News Blog
Latest news
Latest news
P
Privacy International News Feed
T
Tenable Blog
Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
NISL@THU
NISL@THU
酷 壳 – CoolShell
酷 壳 – CoolShell
GbyAI
GbyAI
The Cloudflare Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Blog — PlanetScale
Blog — PlanetScale
K
Kaspersky official blog
小众软件
小众软件
C
Cyber Attacks, Cyber Crime and Cyber Security
G
GRAHAM CLULEY
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
Recent Commits to openclaw:main
Recent Commits to openclaw:main
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Know Your Adversary
Know Your Adversary
B
Blog RSS Feed
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
N
News | PayPal Newsroom
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
TaoSecurity Blog
TaoSecurity Blog
P
Proofpoint News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
A
About on SuperTechFans
V
Visual Studio Blog

博客园 - 让心灵去旅行

在Javascript中用command模式模拟多线程,包含注释 项目小结 sql语句性能提高 oracle的异常 简单的消息发送小程序 XP风格进度条 随机抽取不重复的数据 xmlhttp实现无刷新页面 VS.Net 2005中文版下载地址收藏 在线统计与跟踪(新) 简单ocx控件制作方法(原创) 自己做控件小例子 权限管理的方案(只有实现思想) 收藏几段SQL Server语句和存储过程(转载) 动态添加和删除行 键盘各键对应的键值 只能输入数值的输入框 操作动态表格的控件 模仿QQ的菜单滚动效果
可以双击的DataGrid
让心灵去旅行 · 2005-07-29 · via 博客园 - 让心灵去旅行

可以选中和双击的DataGrid十分容易实现,而且选中行时能够无刷新。
private void DataGrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
  {
   int index = e.Item.ItemIndex;
   if(index>-1)
   {
    string idValue = index.ToString();
    e.Item.Attributes.Add("ondblclick","window.open(\"test.aspx?id="+idValue +"\")");
    e.Item.Attributes.Add("onMouseOver","this.bgColor='pink';this.style.cursor='hand';");
    e.Item.Attributes.Add("onMouseOut","this.bgColor='#ffffff';this.style.cursor='default';");
   }
  }

posted @ 2005-07-29 11:26  让心灵去旅行  阅读(519)  评论()    收藏  举报