I have a RadGridView that is displaying a collection of records. I am binding the collection to the grids ItemSource. The collection and properties implements INotifyPropertyChanged and ICollectionChanged, and displays the values correctly.
One of the record properties is the time it was created. I can display this ok, but I would rather display Now - Created timespan in minutes. And then update it once a minute, to indicate how long the record has been "active" for.
I can use a value converter to calculate the timespan and return the number of minutes, but I am not sure how to trigger it to refresh the value in the cell (or increment it by 1 minute), every minute?
Only idea i have at the moment is creating a DispatcherTimer, and iterating through all the rows, updating each cell. Is there anyway through binding I can trigger this to happen, or some interactivity behaviour to update it self?
thanks.
One of the record properties is the time it was created. I can display this ok, but I would rather display Now - Created timespan in minutes. And then update it once a minute, to indicate how long the record has been "active" for.
I can use a value converter to calculate the timespan and return the number of minutes, but I am not sure how to trigger it to refresh the value in the cell (or increment it by 1 minute), every minute?
Only idea i have at the moment is creating a DispatcherTimer, and iterating through all the rows, updating each cell. Is there anyway through binding I can trigger this to happen, or some interactivity behaviour to update it self?
thanks.