从Adobe Flex的DataGrid中检索单个单元格的值 [英] Retrieving a single cell value from a datagrid in Adobe Flex

查看:180
本文介绍了从Adobe Flex的DataGrid中检索单个单元格的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的CF从那些然后被存储在Flex的一个数据网格数据库检索值。那么我想选择性地从数据网格的一个单元需要的价值,并将其存储为一个字符串变量。我搜索周围,但我一直没能来一个解决方案。用户将无法使用DataGrid互动可言,因为它会被隐藏他们。任何帮助?

I'm using CF to retrieve values from a database that are then being stored in a datagrid in Flex. I then want to selectively take the value from one cell of the datagrid and store it as a string variable. I've searched around, but I haven't been able to come about a solution. The users will not be interacting at all with the datagrid as it will be hidden to them. Any help?

推荐答案

你为什么要费心去使用一个DataGrid,如果它是的隐藏的用户?将资料储存在对象的ArrayCollection或XML文档中访问。装载了一个重量级的用户控件只被无形的不必要的处理时间和浪费开发时间。在任何情况下,你的方式得到大块出一个DataGrid或的AdvancedDataGrid是访问其dataProvider和操作的的。只要消除中间人在这里,你应该罚款。

Why are you bothering to use a DataGrid if it is hidden to the user? Store your data in an ArrayCollection of objects or in an XML document and access that. Loading up a heavyweight user control just to be invisible is unnecessary processing time and wasted development time. In any case, the way you get chunks out of a DataGrid or AdvancedDataGrid is to access its dataProvider and manipulate that. Just eliminate the "middle man" here and you should be fine.

这篇关于从Adobe Flex的DataGrid中检索单个单元格的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆