从 Adob​​e Flex 中的数据网格检索单个单元格值

发布于 2024-08-24 16:34:30 字数 134 浏览 2 评论 0原文

我使用 CF 从数据库中检索值,然后将这些值存储在 Flex 的数据网格中。然后,我想有选择地从数据网格的一个单元格中获取值并将其存储为字符串变量。我四处搜寻,但未能找到解决方案。用户根本不会与数据网格交互,因为数据网格对他们来说是隐藏的。有什么帮助吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜夜流光相皎洁 2024-08-31 16:34:30

如果 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文