xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark">
private function addDGChild():void {
var newChild:String = "new child";
myDG.dataProvider.addItem(newChild);
addDG.enabled = false;
removeDG.enabled = true;
}
private function removeDGChild():void {
myDG.dataProvider.removeItemAt(3);
addDG.enabled = true;
removeDG.enabled = false;
}
itemRenderer="spark.skins.spark.DefaultItemRenderer">
Dave Jones
Mary Davis
Debbie Cooper
click="removeDGChild();" />