RE: [flexcoders] How to dynamically populate the Header Text of Flex Datagrid from XML or from an arrayCollection

2010-01-22 Thread Vaibhav Seth
You need to make it hardcoded, as you hard code the dataField for every column. Else you need to make use of regex and apply it to the XML to make out your nodes for the headers. Good practice is not to pouplate it like this, instead make proper VOs and populate them with your data XML. Your

[flexcoders] How to dynamically populate the Header Text of Flex Datagrid from XML or from an arrayCollection

2010-01-21 Thread Thomas Silvester
Hi, I currently return an XML File(below) to Flex and have been assigning it to an array collection in order to populate a data grid.   As of now i have the header Text hardcoded . I want to put it dynamically from the arraycollection below, and some timee there are some of the columns need to