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

Problem with RadGridView

0 Answers 51 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ola
Top achievements
Rank 1
Ola asked on 07 Jul 2011, 12:07 PM
Hello all,
I have a problem using RadGridView as i want a very customized behavior.
Here is the structure i have. I have a RadGridView that is bound to an ObservableCollection.This collection holds objects that implement INotifyPropertyChanged in order for the UI to be notified whenever a property value changes in any object.
What i want to do is whenever any property value changes i would do some checking and accordingly change the RadGridView cell background color for a couple of seconds then set it back again to it's original color (flashing effect).
The main problem is that I cannot access the RadGridView cells from the code behind.
I tried some trials but i had a problem in each of them..

I made my own style selector where i made my checking a return the desired style, and assigned this style selector column CellStyleSelector property (Xaml). But then, i am able to change the cell background color but cannot set it back to it's original.

I placed my whole logic in a ListBox and then place it inside the RadGridView as a DataTemplate in GridViewColumn. But again i'm not able to access the list box from the code behind.

I feel like I'm close to the solution but there must be something missing.
Could you help me in that??

Thank you very much for your help in advance.

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Ola
Top achievements
Rank 1
Share this question
or