Moauayad Al Zein
Moauayad Al Zein

Reputation: 57

how to Style gridview rows during runtime in wpf?

<ListView.View>
            <GridView>
                <GridViewColumn Header="اسم الشركة" DisplayMemberBinding="{Binding Path=company_name}" Width="200" />
                <GridViewColumn Header="رمز الشركة" DisplayMemberBinding="{Binding Path=symbol}" Width="Auto" />
                <GridViewColumn Header="سعر السهم"  DisplayMemberBinding="{Binding Path=price}" Width="Auto" />
                <GridViewColumn Header="نسبة التغير" DisplayMemberBinding="{Binding Path=change_percent}" Width="Auto" />
            </GridView>
        </ListView.View>

I have the previous XAML tags to define the listview I am using in my wpf - C# application I want to give each row in my listview a specific color that would be chosen during runtime

I know it might be a silly question but I need it badly and I have looked for it alot with no results

Can you help me ?

Upvotes: 2

Views: 811

Answers (1)

GC87
GC87

Reputation: 390

Is this something you are looking for?

Upvotes: 1

Related Questions