# DataConnection - question

**URL:** <https://forum.kirupa.com/t/dataconnection-question/75730>\
**Category:** flash\
**Created:** [January 11, 2005, 8:11pm UTC](https://forum.kirupa.com/t/dataconnection-question/75730 "2005-01-11T20:11:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrFlashALot](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@MrFlashALot](https://forum.kirupa.com/u/MrFlashALot)\
**Post date:** [January 11, 2005, 8:11pm UTC](https://forum.kirupa.com/t/dataconnection-question/75730/1 "2005-01-11T20:11:46Z")

</div>

Ive got a DataGrid into which I load a xml-file using an XMLConnector and a DataSet, and it works fine.

Now, I need to use the “editField”-function of the DataGrid to change the content of individual cells. This also works fine.

However, I need to store the previous value stored inside the cell before changing it. The “editField”-function is supposed to return just that value, like this:

```auto
var prevValue = myDataGrid.editField(1, "columnName", "myValue");

```

Well, heres the problem, it doesnt return anything, and the “prevValue” is undefined. Its like the cell is registered as empty/undefined, but still displays text…??
