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

推荐订阅源

V
Visual Studio Blog
C
Cisco Blogs
Help Net Security
Help Net Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Scott Helme
Scott Helme
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
M
MIT News - Artificial intelligence
L
LINUX DO - 热门话题
I
InfoQ
GbyAI
GbyAI
NISL@THU
NISL@THU
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Engineering at Meta
Engineering at Meta
H
Hackread – Cybersecurity News, Data Breaches, AI and More
TaoSecurity Blog
TaoSecurity Blog
Simon Willison's Weblog
Simon Willison's Weblog
A
About on SuperTechFans
Spread Privacy
Spread Privacy
月光博客
月光博客
W
WeLiveSecurity
AWS News Blog
AWS News Blog
云风的 BLOG
云风的 BLOG
有赞技术团队
有赞技术团队
Security Latest
Security Latest
人人都是产品经理
人人都是产品经理
PCI Perspectives
PCI Perspectives
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Microsoft Azure Blog
Microsoft Azure Blog
Hugging Face - Blog
Hugging Face - Blog
S
SegmentFault 最新的问题
T
Troy Hunt's Blog
Martin Fowler
Martin Fowler
The Hacker News
The Hacker News
T
Tor Project blog
C
CERT Recently Published Vulnerability Notes
Apple Machine Learning Research
Apple Machine Learning Research
Stack Overflow Blog
Stack Overflow Blog
K
Kaspersky official blog
Cloudbric
Cloudbric
H
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tailwind CSS Blog
D
DataBreaches.Net
Security Archives - TechRepublic
Security Archives - TechRepublic
T
Tenable Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
博客园 - Franky
L
LINUX DO - 最新话题
MyScale Blog
MyScale Blog

博客园 - Kidd

[zz] English songs 腐败的周末 打羽毛球 雨霖铃 毕业了,醉了,抱了,哭了 玩得越开心,会不会越伤心? 乘车比骑车累 五一博客连载——收尾 五一博客连载——酒吧印象 五一博客连载——毕业游记录 五一博客连载——一个杀手的内心世界 五一博客连载——序 写一篇流水帐 BLOG可不可以用来灌水? Galileo Thermometer 《蜗牛》入选爱国主义歌曲 开始忙了 灵感点亮生活 《寒假生活》
[原创].Net中绑定到DataView的问题
Kidd · 2005-12-07 · via 博客园 - Kidd
于是搜了一下百度和Google,但没有找到关于这个问题的产生原因和解决方法的相关文章。没办法,只好自己再研究研究。在一番尝试之后,发现问题出在DataView上面,试着在这段代码中加入把DataGrid绑定到DataView的代码,结果DataGrid显示为空。也就说明DataView的内容变空了,而DataView的Table属性是DataSet的数据表,也就是说问题的源头在DataSet上。然后试着在代码中加入SqlDataAdapter1.Fill(DataSet1)这条语句,结果问题解决了。于是猜测在SelectedIndexChanged事件中,DataSet被自动清空了,我的DataSet是放在当前网页上的,至于为什么会被清空就不清楚了。总之,这个莫名其妙的报错的原因就是数据为空,重新用SqlDataAdapter刷新一下DataSet就行了。如果有谁知道为什么DataSet在事件中被清空,请告诉我,我最近刚接触VB.Net的Web编程。