# Change DataGrid Scroll Colors

**URL:** <https://forum.kirupa.com/t/change-datagrid-scroll-colors/149092>\
**Category:** flash\
**Created:** [May 25, 2005, 11:03pm UTC](https://forum.kirupa.com/t/change-datagrid-scroll-colors/149092 "2005-05-25T23:03:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![somebodyelse](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@somebodyelse](https://forum.kirupa.com/u/somebodyelse)\
**Post date:** [May 25, 2005, 11:03pm UTC](https://forum.kirupa.com/t/change-datagrid-scroll-colors/149092/1 "2005-05-25T23:03:22Z")

</div>

I’m using the MX04 DataGrid component and have managed to set all the other styles the way I want but have had trouble changing the colors used by the scrollbar.

So far I’ve been using code similar to this:

```auto
//
//
myDataGrid.setStyle("backgroundColor", 0xFF0000);
//
//

```

Can anyone help me change the colors of MyDataGrid’s scroll bar?

Thanks.
