xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx">
import mx.events.DataGridEvent;
import mx.collections.ArrayCollection;
[Bindable]
private var initDG:ArrayCollection = new ArrayCollection([
{Artist:'Pavement', Album:'Slanted and Enchanted',Price:11.99},
{Artist:'Pavement', Album:'Brighten the Corners', Price:11.99}
]);
// Define event listener for the cellEdit event
// to prohibit editing of the Album column.
private function disableEditing(event:DataGridEvent):void {
if(event.columnIndex==1){
event.preventDefault();
}
}
itemEditBeginning="disableEditing(event);">