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
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
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
3 matches
Mail list logo