I'm confused.  The DataGrid uses the dataField in the DataGridColumn to 
determine which property in the DTO/VO it is going to get.

If you don't specify any DataGridColumn, the DTO's properties are introspected 
and used, but you don't get to control the order and usually the property name 
is not really what you want to display in the header ("firstName" instead of 
"First Name").

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of florian.salihovic
Sent: Saturday, February 14, 2009 5:07 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Alex Harui DataGrid and DTO question


Even if it would be possible, wouldn't it break the model/view seperation? You 
are much
more restricted to the data then you are using the "common" way to display data.

- What about formating the displayed data. This would be needed to be done by 
the DTO.
- Other orders... without columns not possible.
- displaying complex content... renderer needed and this is something the DTO 
shouldn't
care about either.

--- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, "Cato 
Paus" <ca...@...> wrote:
>
>
> Hi Alex is there somway to force the datagird to use the DTO getters and
> setters insted of columns ?
>
> ex:
>
> <mx:DataGrid >
>
> <FileDTO>
>
>
>
> </FileDTO>
>
>
> </mx:DataGrid>
>

Reply via email to