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

Posted on 2014-12-15
Last Modified: 2015-01-14
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 ( 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?
Question by:Ed70
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 40
ID: 40501869
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.
LVL 32

Expert Comment

by:Robberbaron (robr)
ID: 40502403
yep, paging or better an index is required.

Author Comment

ID: 40504354
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.

Author Comment

ID: 40504395
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?
LVL 32

Accepted Solution

Robberbaron (robr) earned 500 total points
ID: 40504420
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 as a link that seems to delve into performance issues.

Featured Post

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question