# Text color in a datagrid

**URL:** <https://forum.kirupa.com/t/text-color-in-a-datagrid/305006>\
**Category:** flash\
**Created:** [February 17, 2010, 10:31pm UTC](https://forum.kirupa.com/t/text-color-in-a-datagrid/305006 "2010-02-17T22:31:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pillageTHENburn](https://avatars.discourse-cdn.com/v4/letter/p/9fc29f/32.png) [@pillageTHENburn](https://forum.kirupa.com/u/pillageTHENburn)\
**Post date:** [February 17, 2010, 10:31pm UTC](https://forum.kirupa.com/t/text-color-in-a-datagrid/305006/1 "2010-02-17T22:31:08Z")

</div>

I need to make the text for the cells of a datagrid white. I have read a load of articles that tell how to do this but I must be missing something critical because nothing is working. I have very successfully changed the header text using this:  
[AS]  
var tf:TextFormat = new TextFormat();  
tf.color = 0x003A72;  
tf.font = “ASSA Vesta Bold”  
myDataGrid.setStyle(“headerTextFormat”, tf);  
[/AS]  
I am at a loss. I have spent WAY too many hours chasing this down. Does anyone know how to do this?!
