• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • Last Modified:

What are the minimal requirements to a video card for working with WPF DataGrid controls?

We need to build an application for the Windows OS 7/8 that uses WPF grid controls to browse big arrays of tabular data. We have tested the built-in .NET DataGrid control, some 3rd-party grid controls like Xceed WPF DataGrid or open-source solutions like WPF Table View (http://tableview.codeplex.com/) with a typical table of 25 columns and 100'000 rows, but it seems all grids we tried have problems with redrawing in real time while we are scrolling them, even in the horizontal direction.

We tested them on a laptop with Core i5 and the Intel HD Graphics 4000 video card on board, which is the typical environment for us. As I understand, WPF rendering technology implies that a pc user should have an enough powerful video card that supports the latest versions of DirectX to draw WPF controls without performance problems. I wonder, are all our WPF grid scrolling performance problems related to this "poor" hardware equipment. If so, then how to choose a suitable and non-expensive video card that will be enough for for this task?
0
Ed70
Asked:
Ed70
  • 2
  • 2
1 Solution
 
Jacques Bourgeois (James Burger)PresidentCommented:
The problem is not the video card, its the amount of data that you put in the grid.

Did you measure the size of the data in 25 columns of 100000 rows?  Even if you display only byte values, its 2,500,000 bytes. And I suppose that some columns require more than 1 byte, am I right? Multiply that by 4 if you are displaying integers, more if you have decimal values, even more if there is text in some of the columns. That is way too much to handle for any control, if not simply by the computer itself.

You need to limit the amount of data that is displayed. Anyway, try to find a user who is interested in using a scrollbar to scroll through 100000 rows.

Ask the user what he needs, and query your database so that only the needed subset is displayed in the grid.

100,000 rows is something for the database to handle, not something to be displayed to the user.
0
 
Robberbaron (robr)Commented:
yep, paging or better an index is required.
0
 
Ed70Author Commented:
Jacques, I cannot accept your answer as solution. The problem is not in the number of rows, though I totally agree that it's feasible to browse all 100'000 rows in a grid, but some users need strongly require this as they can sort and group rows, and this is their way to work with data.

As for the number of rows, we see the same poor performance even if the standard DataGrid contains 10'000 or even 1000 rows. Significant delays when using the PAGE UP/PAGE DOWN keys, delays with scrolling... We see this even on a more powerful pc with a discrete GeForce 9500 GT video card.
0
 
Ed70Author Commented:
Is there a synthetic test we can launch to estimate the performance of the video card (perhaps, together with the CPU) and tell whether this couple is enough good for our WPF-DataGrid-related task?
0
 
Robberbaron (robr)Commented:
it seems you are not alone... have a read of MSDN Optimising Performance  I had not heard of
In this case, it makes sense to use UI virtualization,

If the list to display is large, the application's performance can be affected. This is because the standard layout system creates a layout container for each item associated with the list control, and computes its layout size and position.

ive never dealt deeply into WPF but had to implement paging in an app to improve performance... so can only point out item 5 in http://www.codeproject.com/Articles/784529/Solutions-for-WPF-Performance-Issue as a link that seems to delve into performance issues.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now