Hello I create a DataGrid like this :
<mx:Panel title=" Handing Data" height="100%" width="100%" paddingTop="10" paddingLeft="10" paddingRight="10"> <!--<mx:Label width="100%" color="blue" text="Select a row in the DataGrid control."/>--> <mx:DataGrid id="dg" name="dataGrid" width="100%" editable="true" resizableColumns="true" > <mx:columns> <mx:DataGridColumn dataField="variable" headerText="Variable" /> <mx:DataGridColumn dataField="type" headerText="Type" /> <mx:DataGridColumn dataField="value" headerText="Value" /> <mx:DataGridColumn dataField="operation" headerText="Operation" /> </mx:columns> </mx:DataGrid> <mx:HBox width="100%" height="100%"> <mx:Button name="validate" label="Validate" /> <mx:Button name="cancel" label="Cancel" /> <mx:Button name="add" label="Add Data" click="{fillDataGridData2(start)}"/> </mx:HBox> </mx:Panel> when i click in the button add in order to add the date, it crush the last one :( :( There is the implémentation of my function fillDataGridData2(): // fill the Grid Data private function fillDataGridData2(figure : GraphicalFigure ):void { var handData : ArrayCollection = new ArrayCollection(); var collection : ArrayCollection = figure.getListDataAtt(); var bpmnData : BpmnDataComponent; for(var count:int = 0; count < collection.length; count++) { bpmnData = collection.getItemAt(count, 0) as BpmnDataComponent; handData.addItem({variable : bpmnData.Variable, type: bpmnData.Type, value: bpmnData.Value, operation:'operation' }); } dg.dataProvider = handData; } Is there any metho 'add to dataProvider' in order to concat the last contain of DataProvider and the newest one ?? Any help please :( :( Thank you very much :( :( _________________________________________________________________ Hotmail arrive sur votre téléphone ! Compatible Iphone, Windows Phone, Blackberry, … http://www.messengersurvotremobile.com/?d=Hotmail