RE: [flexcoders] DatagridColumn dataField question

2009-08-29 Thread Tracy Spratt
10:44 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DatagridColumn dataField question dataField is a property belonging to the objects within the datagrid's dataprovider. you don't access the array directly from your datagrid column, rather you just name the field to access

[flexcoders] DatagridColumn dataField question

2009-08-28 Thread bhaq1972
Can the dataField reference an array position eg var array1:Array = [hello, world, etc]; ... mx:DataGridColumn dataField=array1[1] / at the moment the only way i can make this work is use a labelFunction eg mx:DataGridColumn dataField=array1[1] labelFunction=something/ Just wondered if there

Re: [flexcoders] DatagridColumn dataField question

2009-08-28 Thread Beau Scott
dataField is a property belonging to the objects within the datagrid's dataprovider. you don't access the array directly from your datagrid column, rather you just name the field to access. So in the case you gave of an array of strings, you'd only be able to display properties of the string