When you add the text programmatically, you should do so in the dataProvider, and then it will get reflected in the DataGrid.
If you simply change the data in the DataGrid, when you focus out the data in the dataProvider is refreshed into the cell.
If this post answers your question or helps, please mark it as such.
Flex Development and Support Services
ok so now im doing it in the dataProdiver of the datagrid which is XML like this..
xmlData.CUSTOMER[dataG.selectedIndex].location = aString;
and nothing is happening.
i tried a few things and found that if i focus out of the datagrid and then set the xml it works but now i cant figure out how to focus back into the cell that i had previously been in