Hi Stephen,
For getter/setters, you use the getter to bind to the DataGridColumn
dataField:
<mx:DataGridColumn dataField="myProperty"/>
A typical VO getter/setter:
private var _myProperty:String;[Bindable( event="myPropertyChange"
)]public function get myProperty():String{     return
_myProperty;}public function set myProperty( value:String ):void{    
_myProperty = value;     dispatchEvent( new Event( "myPropertyChange" )
);}
-TH


--- In [email protected], "stephen50232" <stephenada...@...>
wrote:
>
> Hi,
>
> I'm working on a test AIR app, trying to understand MVC better. Part
of this app has a datagrid, which I'm trying to display a list of staff
member details.
>
> This datagrid is using a ArrayCollection full of value objects as its
data provider. My value object are using getters/setters to store and
retrieve data. I've data bound my array collection to the datagrid, but
how do I populate the dataField of the data grid columns in the
datagrid.
>
> If i was using public properties in my value objects, then putting the
property name in dataField would work, but I'm using private properties
so can't access them, I'd like to know how to access getters and setter
properties when databinding like this.
>
> Is it possible?
>
> Thanks
>
> Stephen
>

Reply via email to