Dear experts!
I'm creating a persistent data streaming utility.
How it works:
For 2. I use
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
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
I'm creating a persistent data streaming utility.
How it works:
- some remote server constanly adds a new records to the database table
- 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