[flexcoders] e4x data question

2006-08-23 Thread richardhughes260
With the code below, how come I can not use a datagrid like below without an error? Why is data.name working in TileList but not for a DataGrid? HELP :) { mx:DataGrid dataProvider={xlc} mx:columns mx:DataGridColumn dataField={data.name} headerText=Name/ mx:DataGridColumn

[flexcoders] How do I get around having 1 or 0 items when bound to a grid?

2006-06-20 Thread richardhughes260
How do I get around having 1 or 0 items when bound to a grid? In the Data Grid, Retreiving Data example on http://flexapps.macromedia.com/flex2beta3/explorer/explorer.html It breaks when you have less than two items in the XML data. :( How do I get around this? ?xml version=1.0