Thanks for the suggestion. I tried changing the name of the ArrayCollection, but I'm still getting the "Unable to Bind" warning.
Any other ideas? Paul --- In [email protected], "Samuel Reuben" <[EMAIL PROTECTED]> wrote: > > from the looks of the code it seems that you'll have to change the name of > your ArrayCollection. Try myDataProvider > > hope it works, > -sam > > On 12/8/06, Paul Whitelock <[EMAIL PROTECTED]> wrote: > > > > I hoping someone might know why I am getting an "unable to bind" warning > > with the following scenario. Below is a portion of my code that uses a > > DataGrid bound to an ArrayCollection data provider ("text" is one of the > > fields in the collection). > > > > -------------------------------------- > > > > [Bindable] > > public var dataProvider:ArrayCollection; > > > > <mx:DataGrid id="dg" dataProvider="{dataProvider}" > > > <mx:columns> > > <mx:DataGridColumn headerText="Items" itemRenderer="renderer.RichText" > > dataField="text" editable="false" /> > > </mx:columns> > > </mx:DataGrid> > > > > -------------------------------------- > > > > The following is a very simple component (renderer.RichText) that simply > > converts the "text" data to rich text. > > > > -------------------------------------- > > > > <?xml version="1.0" encoding="utf-8"?> > > <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"> > > <mx:Text id="richText" htmlText="{data.text}" width="100%" height="100%" > > selectable="false" /> > > </mx:Canvas> > > > > -------------------------------------- > > > > When the application is run, I get the following error: > > > > "warning: unable to bind to property 'text' on class 'Object' (class is > > not > > an IEventDispatcher)" > > > > Note that the data from "data.text" is correctly displayed in the > > DataGrid. > > > > Any idea why I am getting the "unable to bind" warning and how I might get > > rid of it? Thanks! > > > > Paul > > > > --- > > Paul Whitelock > > Denver, Colorado > > > > > > >

