This content has been marked as final. Show 5 replies
I don't think I made myself clear, after I type "mydatagrid.dataProvider." the only options are those for a plain Object class not an ArrayCollection class. so I never see a getItemAt(.... option.
I found a workaround, but still wondering what was my problem above?
Here is how i am doing it now.
var ac:ArrayCollection = dg.dataProvider as ArrayCollection;
Alert.show( ac.getItemAt(rownumber)[field] );
I wouldn't say it is a workaround, it is the correct way of doing it.
On the documentation it is very clear, dataProvider is typed as Object, so whenever you read this property you will get an Object no matter if it really an array, arraycollection or an xml
It is important to be aware of the data types of each property, so you can cast it and use it properly.
You're right. I appreciate your help!