# Spark style property won't work inside datagrid renderer

**URL:** <https://forum.kirupa.com/t/spark-style-property-wont-work-inside-datagrid-renderer/321045>\
**Category:** flash\
**Created:** [April 8, 2011, 3:40pm UTC](https://forum.kirupa.com/t/spark-style-property-wont-work-inside-datagrid-renderer/321045 "2011-04-08T15:40:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![budkin](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/budkin/32/1457_2.png) [@budkin](https://forum.kirupa.com/u/budkin)\
**Post date:** [April 8, 2011, 3:40pm UTC](https://forum.kirupa.com/t/spark-style-property-wont-work-inside-datagrid-renderer/321045/1 "2011-04-08T15:40:31Z")

</div>

Hello,

I’ve got a custom component with a spark text input in it (s:TextInput) I have it styled via css and one of the properties is:

\*\*contentBackgroundColor \*\*(This is a spark specific style according to the docs)

I’m trying to use this component inside an advanced data grid (mx:AdvancedDataGrid) via an advanced data grid item renderer (s:MXAdvancedDataGridItemRenderer).

The issue is that all the properties of the style I’m using are working fine except for **contentBackgroundColor**. Everything works fine no matter where I use this component _except for when I use it in this renderer_. I’ve tried adding the normal backgroundColor style that is used in the mx version but that doesn’t seem to work either.

Any ideas on why this is happening and what I can do to fix it? Thanks.
