--- In [email protected], Vaibhav Seth <vaibhav.s...@...> wrote: > > > 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 work will be more structured and then > you have control over the things you mentioned.
What the heck? DataGridColumn has a property called headerText. You can set this in AS. Please be careful when responding to peoples' questions. Sometimes you can cost someone more time giving them the wrong answer than by not answering at all. Thomas, you can find the reference for the DataGridColumn class here: http://livedocs.adobe.com/flex/3/langref/index.html?mx/controls/dataGridClasses/DataGridColumn.html&mx/controls/dataGridClasses/class-list.html Thanks; Amy

