Hi,

When I try to bind an empty ArrayCollection or with only 1 item to a
Datagrid, I'm getting a runtime error (sorry it's in french but the
error number means something in this case):

TypeError: Error #1034: Echec de la contrainte de type : conversion de
mx.utils::[EMAIL PROTECTED] en mx.collections.ArrayCollection
impossible.

Here's the code I use :

private function handler(event:ResultEvent):void {
   grilleTerrainsACDP = event.result.terrains.terrain;
}

And the "grilleTerrainsACDP" variable who's binded to my datagrid, as
the data provider, is declared this way:

[Bindable] public var grilleTerrainsACDP:ArrayCollection;

Any idea?

I use a ArrayCollection for ICursorView...

Thanks
Nicolas

Reply via email to