# Components -\> Haw to change DataGrid background?

**URL:** <https://forum.kirupa.com/t/components-haw-to-change-datagrid-background/302688>\
**Category:** Uncategorized\
**Created:** [January 5, 2010, 11:30pm UTC](https://forum.kirupa.com/t/components-haw-to-change-datagrid-background/302688 "2010-01-05T23:30:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LOLFlash](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@LOLFlash](https://forum.kirupa.com/u/LOLFlash)\
**Post date:** [January 5, 2010, 11:30pm UTC](https://forum.kirupa.com/t/components-haw-to-change-datagrid-background/302688/1 "2010-01-05T23:30:55Z")

</div>

Hi

I want to change background in first column DataGrid : Make it gray . I tried to assign MyCellRenderer class but what to put in a class to make background change?  
I did

override protected function drawLayout():void {  
setStyle(“backgroundColor”,0x555555);  
textField.backgroundColor=0x555555;  
}

doesn’t work

Or any other way available?

Thanks
