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

推荐订阅源

Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
The Register - Security
The Register - Security
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
P
Proofpoint News Feed
Project Zero
Project Zero
The GitHub Blog
The GitHub Blog
The Last Watchdog
The Last Watchdog
F
Fortinet All Blogs
S
Schneier on Security
Help Net Security
Help Net Security
Security Archives - TechRepublic
Security Archives - TechRepublic
C
Check Point Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Proofpoint News Feed
I
InfoQ
T
The Blog of Author Tim Ferriss
Cisco Talos Blog
Cisco Talos Blog
Stack Overflow Blog
Stack Overflow Blog
T
Troy Hunt's Blog
人人都是产品经理
人人都是产品经理
T
Threatpost
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cyber Attacks, Cyber Crime and Cyber Security
雷峰网
雷峰网
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
Forbes - Security
Forbes - Security
Vercel News
Vercel News
S
Security Affairs
美团技术团队
P
Privacy & Cybersecurity Law Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Jina AI
Jina AI
Spread Privacy
Spread Privacy
Attack and Defense Labs
Attack and Defense Labs
IT之家
IT之家
U
Unit 42
Recorded Future
Recorded Future
W
WeLiveSecurity
PCI Perspectives
PCI Perspectives
P
Palo Alto Networks Blog
H
Hacker News: Front Page
S
Security @ Cisco Blogs
博客园 - 【当耐特】

博客园 - 赵国亮

诚聘:网站高级程序员 诚聘:网站高级程序员 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 博客园 - 赵国亮

        在VB.NET 2003的DataGrid中,通过使用编辑列可以在页面中实现一种无刷新效果,其实现代码如下:

        在DataGrid的EditCommand事件中代码如下:
        Private Sub DataGrid_EditCommand(ByVal source As System.Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid.EditCommand
            DataGrid.EditItemIndex = e.Item.ItemIndex
            '数据绑定
            BindData()
        End Sub

        在DataGrid的UpdateCommand事件中代码如下:
        Private Sub DataGrid_UpdateCommand(ByVal source As System.Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid.UpdateCommand
            '数据更新
            Update()
            DataGrid.EditItemIndex = -1
            '数据绑定
            BindData()
        End Sub

        在DataGrid的CancelCommand事件中代码如下:
        Private Sub DataGrid_CancelCommand(ByVal source As System.Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid.CancelCommand
            DataGrid.EditItemIndex =  -1
            '数据绑定
            BindData()
        End Sub