This is a migrated thread and some comments may be shown as answers.

GridViewCell color change depending on item property

2 Answers 28 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 11 Dec 2012, 05:25 PM
Hello.
I have a RadGridView control which is binded to ObservableCollection<DATA>. DATA has a lot of properties, including DEP_LINK
RadGridView has a Combobox column, which is binded to DEP_LINK property:
<telerik:GridViewComboBoxColumn Header="Department"
                                DataMemberBinding="{Binding DEP_LINK}"
                                ItemsSource="{Binding Departments}"
                                SelectedValueMemberPath="LINK"
                                DisplayMemberPath="TITLE">
</telerik:GridViewComboBoxColumn>
Combobox Items Source is ObservableCollection<DEPARTMENT>. DEPARTMENT has LINK, TITLE and ISUSED properties.
Now I want to color this cell Red if ISUSED == 0. Any thoughts how can I achieve this?
Thank you!

2 Answers, 1 is accepted

Sort by
0
Andrew
Top achievements
Rank 1
answered on 12 Dec 2012, 01:54 PM
Anyone?
0
Andrew
Top achievements
Rank 1
answered on 16 Dec 2012, 05:17 PM
Hello?
Tags
GridView
Asked by
Andrew
Top achievements
Rank 1
Answers by
Andrew
Top achievements
Rank 1
Share this question
or