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

推荐订阅源

H
Hackread – Cybersecurity News, Data Breaches, AI and More
W
WeLiveSecurity
C
Check Point Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Vulnerabilities – Threatpost
GbyAI
GbyAI
A
Arctic Wolf
NISL@THU
NISL@THU
N
Netflix TechBlog - Medium
The Register - Security
The Register - Security
M
MIT News - Artificial intelligence
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Microsoft Security Blog
Microsoft Security Blog
Cyberwarzone
Cyberwarzone
C
CERT Recently Published Vulnerability Notes
T
Tenable Blog
G
GRAHAM CLULEY
O
OpenAI News
S
Schneier on Security
Google Online Security Blog
Google Online Security Blog
Vercel News
Vercel News
宝玉的分享
宝玉的分享
Attack and Defense Labs
Attack and Defense Labs
T
The Blog of Author Tim Ferriss
量子位
aimingoo的专栏
aimingoo的专栏
The Cloudflare Blog
P
Privacy & Cybersecurity Law Blog
S
SegmentFault 最新的问题
MongoDB | Blog
MongoDB | Blog
Apple Machine Learning Research
Apple Machine Learning Research
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LINUX DO - 热门话题
博客园_首页
F
Full Disclosure
Recent Commits to openclaw:main
Recent Commits to openclaw:main
D
Docker
U
Unit 42
A
About on SuperTechFans
博客园 - 司徒正美
Hacker News - Newest:
Hacker News - Newest: "LLM"
人人都是产品经理
人人都是产品经理
Application and Cybersecurity Blog
Application and Cybersecurity Blog
G
Google Developers Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
J
Java Code Geeks
云风的 BLOG
云风的 BLOG
Scott Helme
Scott Helme
TaoSecurity Blog
TaoSecurity Blog

博客园 - 雨后出太阳

代码新建二维表 8招助你远离咽炎 C# 数据的加密解密 DbHelperSQL 判断数据库表结构公用方法 浏览器变灰的实现方式 林仕鼎:互联网正发生模式变革 SQL Server 游标使用方法 网摘:互联网的2/8原则 红杉投资过程的独特之处 [转]毕业5年,同学之间差距为何这么大 - 雨后出太阳 - 博客园 ADO.NET数据存取技术与O/R Mapping演进[转] 工作以后十不要 减少奋斗30年 怎么算是优秀的程序员--写给工作2,3年了的同行 少走弯路的十条忠告 .NET世界的M型化--原文作者奚江华 <转>[创业经验]程序员创业:我的软件推广成功之路 一个程序员的C#命名规则<转> 推荐奚江华著《圣殿祭祀ASP.NET 3.5 专家技术手册 C#篇-----及他的TW博客进入方法》 C#算法
使用 DataFormatString 属性来提供列中各项的自定义格式
雨后出太阳 · 2009-02-14 · via 博客园 - 雨后出太阳

使用DataFormatString属性来提供列中各项的自定义格式。  
   
  数据格式字符串由以冒号分隔的两部分组成,形式为 {   A:   Bxx   }。例如,格式化字符串   {0:F2}   将显示带两位小数的定点数。  
   
  注意整个字符串必须放在大括号内,表示它是格式字符串,而不是实际字符串。大括号外的任何文本均显示为实际文本。  
  冒号前的值(常规示例中为 A)指定在从零开始的参数列表中的参数索引。  
   
  注意此值只能设置为0,因为每个单元格中只有一个值。  
  冒号后的字符(常规示例中为 B)指定值的显示格式。下表列出了一些常用格式。  
   
  格式字符说明    
  C     以货币格式显示数值。    
  D     以十进制格式显示数值。    
  E     以科学记数法(指数)格式显示数值。    
  F     以固定格式显示数值。    
  G     以常规格式显示数值。    
  N     以数字格式显示数值。    
  X     以十六进制格式显示数值。