Listview column and per row color question

Aug 1, 2013 at 5:56 AM
The code above only able to show the column to be yellow.

I need the column per row to show diff colors

example :

yellow

red

blue

Is this possible to be done?

Please enlighten me.

Thanks alot !
<ListView x:Name="myListView" ItemsSource="{Binding Tabs}">
        <ListView.View>
            <GridView>
                <GridViewColumn Header="Column 1" DisplayMemberBinding="{Binding Name}"/>
                <GridViewColumn Header="Column 1">
                    <GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <Grid Background="Yellow">
                                <TextBlock Text="{Binding Id}"/>
                            </Grid>
                        </DataTemplate>
                    </GridViewColumn.CellTemplate>
                </GridViewColumn>
            </GridView>
        </ListView.View>
        <ListView.ItemContainerStyle>
            <Style TargetType="ListViewItem">
                <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
            </Style>
        </ListView.ItemContainerStyle>
    </ListView>