【发布时间】:2012-10-10 13:50:23
【问题描述】:
我的代码中有一个如下所示的数据网格:
<s:DataGrid id="dg">
<s:ArrayCollection id="ac">
<s:DataItem ../>
<s:DataItem ../>
</s:ArrayCollection>
</s:DatGrid>
在以特定方式对数据进行排序后,我试图让一个单独的标签(默认情况下)显示来自特定单元格的数据。
例如:
DataGrid shows:
Date Type
---- ----
8 yes
12 no
6 this
7 that
Label: 6 (First date after sorting in ascending order)
有什么简单的方法可以在 ActionScript(或其他方式)中做到这一点?我应该尝试使用 ArrayCollection 组件还是 DataGrid?
谢谢,
【问题讨论】:
标签: sorting actionscript datagrid arraycollection