First, you are really posting in the wrong forum. This one is
for Flex Builder 2, an IDE/code editor. You question is about the
language Flex, and such questions should go in the "General
That said, I'll thake a whack at your question.
You can't do what you want in declarative mxml, you must use
Actionscript. I don't have an example for Flex 2.0, but you will
want to use the "columns" array property of the DataGrid.
I assume you already have the data from the RemoteObject call
I will try to create a simple example of this. I'll post when