If you run into this error while writing an MXML class and you double checked that it really gets defined properly you might want to check the bindings.

 
<mx:DataGrid dataProvider="myListDP" height="100%" width="100%"/>

is wrong since it misses the brackets. Use

 
<mx:DataGrid dataProvider="{myListDP}" height="100%" width="100%"/>

instead.