Retrieving a single cell value from a datagrid in Adobe Flex

与世无争的帅哥 提交于 2019-12-11 12:49:10

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/2423130/retrieving-a-single-cell-value-from-a-datagrid-in-adobe-flex

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!