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

How to highlight new rows in a RadGridView

0 Answers 23 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mykola
Top achievements
Rank 1
Mykola asked on 24 Jan 2012, 12:56 AM
Dear experts!
I'm creating a persistent data streaming utility.
How it works:

  1. some remote server constanly adds a new records to the database table
  2. my app has a UI control to display few thousands of latest records - RadGridView

For 2. I use DispatcherTimer which asks for a new portion of data every second.
When new data comes, I simply rewrite old cell values.
So my datagrid has a constant number of rows - if I'll ask for 100000 latest rows in SQL query, I'll get 100000 rows in gridview.
I'm trying to be very careful with performance and to create as less new objects as it possible.
Maybe, my approach is far from optimal - I'll be happy to know better one.

So, my question is:

How to highlight new rows, added in a latest RadGridView ItemsSource change, with a best performance?

Here is a small quick demo project that illustrates my project in general.

(To run it you need SQL Server CE 3.5+)

Will be glad to get any help! :)

Regards,
Mykola

No answers yet. Maybe you can help?

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