This content has been marked as final. Show 3 replies
I am not quite following.
Are you trying to make changes in the data be visible in the DataGrid, or are you trying to have the data behind the dataGrid update a database on the server?
Also, avoid using XMLList as a dataProvider if you ae going to programatically change the data, becuase XMLList methods do not dispatch the necessary events. Instead, wrap it in an XMLListCollection:
xlcData:XMLListCollection = new XMLListCollection(myXMLList);
ok I will try the xml collection. But the data I want to change is already visible in the datagrid. Like a schedule. I click a name on the schedule (datagrid),change the name cause it's editable and after that I push an update button that save all the change visible and edited in the datagrid. Like a refresh. Cause right now If I make change in a couple cell. QUi the application and open it again, it's back to where it was before with the old data. It's more like a save button for editable
datagrida that I want do. But I was not sure if it's was possible with the XMLList.
"... change in a couple cell. QUi the application and open it again, it's back to where it was before with the old data..."
If you are not saving the data to a server, then this will always happen. Flex cannot natively save any files anywhere (except Local Shared Object).
When you say, "...after that I push an update button that save all the change visible and edited in the datagrid...", what do you mean? What does the button do, exactly. Post code if necessary.