Hi,
The property is dataField and not datafield. Also please check if the property
name and the value in the dataField is correct. Please check the code below.
Hope this helps.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import com.adobe.ToDelete;
[Bindable]private var coll:ArrayCollection;
private function populateData():void
{
coll = new ArrayCollection();
var obj:Object = new Object();
obj.id = "1";
coll.addItem(obj);
obj = new Object();
obj.id = "2";
coll.addItem(obj);
}
]]>
</mx:Script>
<mx:Button id="btn" label="do it" click="populateData()"/>
<mx

ataGrid dataProvider="{coll}"
width="100%" height="254"
id="missionDataGrid">
<mx:columns>
<mx

ataGridColumn headerText="id" dataField="id"/>
</mx:columns>
</mx

ataGrid>
</mx:Application>