<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/09/24/setting-background-colors-on-a-datagrid-column-in-flex/ -->
<mx:Application name=""
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white" viewSourceURL="srcview/index.html">

    <mx:XML id="xmlDP" source="data/dp.xml" />

    <mx:DataGrid id="dataGrid"
            dataProvider="{xmlDP.children()}"
            verticalScrollPolicy="on">
        <mx:columns>
            <mx:DataGridColumn dataField="@c1"
                    backgroundColor="haloSilver" />
            <mx:DataGridColumn dataField="@c2"
                    backgroundColor="white" />
            <mx:DataGridColumn dataField="@c3"
                    backgroundColor="haloSilver" />
        </mx:columns>
    </mx:DataGrid>

</mx:Application>