# How to access existing data in DataGrid cell?

**URL:** <https://forum.kirupa.com/t/how-to-access-existing-data-in-datagrid-cell/320387>\
**Category:** flash\
**Created:** [March 22, 2011, 11:19am UTC](https://forum.kirupa.com/t/how-to-access-existing-data-in-datagrid-cell/320387 "2011-03-22T11:19:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![srvikram13](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@srvikram13](https://forum.kirupa.com/u/srvikram13)\
**Post date:** [March 22, 2011, 11:19am UTC](https://forum.kirupa.com/t/how-to-access-existing-data-in-datagrid-cell/320387/1 "2011-03-22T11:19:39Z")

</div>

Hi,

Can anybody tell me how to access existing data in a DataGrid cell in labelFunction?

I am able to access the new data to be displayed in the cell.

What I want to do now is if the new value is less than the present value in the cell then show it in red else in green.

But, I am stuck on trying to read already existing value in the cell.

Can anybody help me please?
