# Change textcolor/style at specified row at List component?

**URL:** <https://forum.kirupa.com/t/change-textcolor-style-at-specified-row-at-list-component/287690>\
**Category:** flash\
**Created:** [May 5, 2009, 10:10am UTC](https://forum.kirupa.com/t/change-textcolor-style-at-specified-row-at-list-component/287690 "2009-05-05T10:10:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![koneko](https://avatars.discourse-cdn.com/v4/letter/k/f6c823/32.png) [@koneko](https://forum.kirupa.com/u/koneko)\
**Post date:** [May 5, 2009, 10:10am UTC](https://forum.kirupa.com/t/change-textcolor-style-at-specified-row-at-list-component/287690/1 "2009-05-05T10:10:42Z")

</div>

Hi, I’m trying so change the textcolor at specified row in the List component.  
I use list.itemToCellRenderer(list.getItemAt(i)) to get access the List cell, but the problem is why the CellRenderer object that below scrolling display is return null?  
I’ve already put list.drawNow() , if i’m not include it , the outcome is worse … it trace all \*null  
Must I put list.drawNow() eachtime the List is changing? \*not a proper way i think  
So , how’s to access each cell List properly?

Help anyone?  
Thx.

```auto

import fl.controls.List;
import fl.controls.listClasses.CellRenderer;

var i:int;
var max:int=10;
list.rowCount = 5;
list.selectedIndex=7;

for(i=0;i<max;i++)
{
    list.addItemAt({label:"user"+String(i), data:i}, i);
}
list.drawNow();
for(i=0;i<max;i++)
{
    var cr:CellRenderer = new CellRenderer();
    cr=list.itemToCellRenderer(list.getItemAt(i)) as CellRenderer;
    trace(cr);    
}

```

output :

```auto

[object CellRenderer]
[object CellRenderer]
[object CellRenderer]
[object CellRenderer]
[object CellRenderer]
[object CellRenderer]
null
null
null
null

```
