Link to home
Start Free TrialLog in
Avatar of Ed70
Ed70

asked on

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?
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada image

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.
Avatar of Robberbaron (robr)
yep, paging or better an index is required.
Avatar of Ed70
Ed70

ASKER

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.
Avatar of Ed70

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of Robberbaron (robr)
Robberbaron (robr)
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial