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

推荐订阅源

Last Week in AI
Last Week in AI
U
Unit 42
博客园 - 【当耐特】
Y
Y Combinator Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Microsoft Security Blog
Microsoft Security Blog
Recent Announcements
Recent Announcements
P
Proofpoint News Feed
Martin Fowler
Martin Fowler
量子位
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
有赞技术团队
有赞技术团队
aimingoo的专栏
aimingoo的专栏
博客园 - 司徒正美
美团技术团队
雷峰网
雷峰网
小众软件
小众软件
G
Google Developers Blog
GbyAI
GbyAI
Jina AI
Jina AI
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
F
Fortinet All Blogs
Vercel News
Vercel News

博客园 - 每天都有进步

eclipse安装flex插件 eclipse运行错误 Version 1.3.1_01 of the JVM is not suitable for this product.Version:1.4.1 or greater is required Oracle的临时表 SQL Server CE的安装 ArcGIS Server 9.3安装流程 在新公司工作一个月了 十个故事(从故事中看出创业必备的精神)(转) 回去了 过年回家了 经济周期的四个阶段 出差再出差 都说四川美女多 08年10月30日,到了成都 240多个jQuery插件 (转) 会过去的 又开始上班了 明天放假了 懂了 构造函数,析构函数
[FLEX]自定义格式化DataGrid的列值 (转)
每天都有进步 · 2008-12-16 · via 博客园 - 每天都有进步

<mx:DataGridColumn headerText="正确 " labelFunction="checkIsTrue" dataField="IsTrue"/>

labelFunction指向绑定label时所调用的函数。

ActionScript代码:

 private function checkIsTrue (item:Object,column:DataGridColumn):String{

              if(item. IsTrue =="true") return "正确";

              if(item. IsTrue =="false") return "错误";

              else return "读取出错";

            }

checkIsTrue的参数有两个,一个是当前项“item”,另一个是当前列“column”。通过这样就可以实现跟.NET一样的数据绑定修改了。