Hey guys,

I'm getting an error when I try to add a column to a DataGrid that's
in a view stack when that view isn't showing. Before you say "set the
creation policy to 'all'", you should know I already did that. The
DataGrid has been created (it isn't null), but when I add a column, I
get the error below. If I call the same function to add the column in
the 'show' event of the datagrid's viewstack container, it works.

Any ideas?
thanks,
Thunder
_______________________________

TypeError: Error #1010: undefined has no properties.
        at
mx.controls::DataGrid/configureScrolling()[C:\dev\beta1\sdk\frameworks\mx\controls\DataGrid.as:1423]
        at
mx.controls.listclasses::ListBase/mx.controls.listclasses:ListBase::updateDisplayList()[C:\dev\beta1\sdk\frameworks\mx\controls\listclasses\ListBase.as:1552]
        at
mx.controls::DataGrid/mx.controls:DataGrid::updateDisplayList()[C:\dev\beta1\sdk\frameworks\mx\controls\DataGrid.as:1053]
        at
mx.core::UIComponent/validateDisplayList()[C:\dev\beta1\sdk\frameworks\mx\core\UIComponent.as:5548]
        at
mx.managers::LayoutManager/validateDisplayList()[C:\dev\beta1\sdk\frameworks\mx\managers\LayoutManager.as:498]
        at
mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation()[C:\dev\beta1\sdk\frameworks\mx\managers\LayoutManager.as:564]
        at
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\beta1\sdk\frameworks\mx\core\UIComponent.as:7521]
        at
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\beta1\sdk\frameworks\mx\core\UIComponent.as:7463]






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to