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

推荐订阅源

T
Tenable Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Google Online Security Blog
Google Online Security Blog
T
Threat Research - Cisco Blogs
D
Darknet – Hacking Tools, Hacker News & Cyber Security
W
WeLiveSecurity
NISL@THU
NISL@THU
V
Vulnerabilities – Threatpost
V2EX - 技术
V2EX - 技术
Cisco Talos Blog
Cisco Talos Blog
Simon Willison's Weblog
Simon Willison's Weblog
The Last Watchdog
The Last Watchdog
P
Privacy International News Feed
博客园 - 三生石上(FineUI控件)
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Scott Helme
Scott Helme
C
Cybersecurity and Infrastructure Security Agency CISA
Cyberwarzone
Cyberwarzone
量子位
Security Archives - TechRepublic
Security Archives - TechRepublic
Microsoft Azure Blog
Microsoft Azure Blog
F
Fortinet All Blogs
H
Hacker News: Front Page
D
Docker
N
Netflix TechBlog - Medium
阮一峰的网络日志
阮一峰的网络日志
G
Google Developers Blog
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
Last Week in AI
Last Week in AI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
K
Kaspersky official blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
爱范儿
爱范儿
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
小众软件
小众软件
S
Security Affairs
博客园 - 聂微东
AI
AI
Latest news
Latest news
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Engineering at Meta
Engineering at Meta
Cloudbric
Cloudbric
S
Secure Thoughts
Spread Privacy
Spread Privacy
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org

博客园 - CZoneSoft

HBuilder的扩展插件开发暴露了一个事实:其实不能实现写一次代码实现跨平台App生成 幂等方法的应用 2018春节旅行大数据分析 CZoneSoft Android-x86应用于大型交互设备成功案例 win7 x64安装离线.net 4.0安装失败 报0xc8000247错误 软件以及程序员价值正日益低贱,大胆预言:中国程序员在威客网站逼迫下,收入将不及农民工 CIF视频是什么 新族工程项目合同管理软件 CZoneSoft iBooker手机电子书阅读器开发 在广州生活真正的最低工资标准 想做电子商务,为什么不去淘宝开店,为什么要开发自己的交易平台? mDNSResponder-Apple 公司的产品,用于自动发现局域网上的打印机或其它设备 微软的云计算概念和Google的云计算概念的差别 修正ffmpeg编译错误-videodev2.h:518: error: syntax error before 真的没有几个人能做到!--如果你休息一天,实力就会倒退两天--2500多个日子里只有5天在休息! 手动去迅雷广告,加速迅雷启动的方法 高薪职业走向 开源杀毒软件Moon Secure Antivirus的使用结局 开放与排斥
当数据为空时如何显示DetailView以便可以新增记录
CZoneSoft · 2010-04-14 · via 博客园 - CZoneSoft

当调用DetaialView时,如果数据为空,默认DetailView控件会不显示,这样就无法利用该控件快速开发了。

网上有许多人说用EmptyDataTemplate放置自己的界面,并添加自己的新增按钮,然后编码。

实际上,不需要编写一行代码,更不需要再画自己的界面。

只需要设置DetailView的属性DefaultMode为:Insert ,则即使没有数据,初始化DetailView的界面时,就是新增的操作界面,且如果已经绑定好可编辑的数据源,直接就可以录入数据而不用编写任何代码了。如下图:(不好意思,今天打开这个网站非常慢,无法打开上传界面,改天在把图发上来)

--------------------------------------------

CZoneSoft 专业提供软件开发、网络维护外包服务

可提供以下语言和开发环境的开发:Asp.net, Java,Jsp, Jsf, C#,C++,PHP,Windows,Linux