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

WPF RadGridView memory usage/leak

1 Answer 66 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 1
Phil asked on 11 Dec 2013, 08:55 PM
We have a RadGridView that's data-bound to a DataView (via ItemsSource). The DataTable can have 1 million records or more and we're sometimes experiencing out-of-memory errors, and memory never seems to be freed. Typical column count for our grid is anywhere from 10 or so to maybe 20+. The more columns, the worse, of course.

The grid is on a WPF UserControl that's hosted inside a WinForms form, in case that makes a difference, and it's set up to auto-generate columns because it's designed to show practically any kind of data from the database that the user wants to query. We have column and row virtualization enabled, and we're using the lightweight templates (which we recently implemented because they're faster).

We really have 2 problems:

1. Memory usage versus the standard .NET data view control. Are there any known issues with excessive memory usage?

2. Memory never seems to be released, even after disposing the DataTable, setting references to null, removing the grid from its parent, disposing the disposables, and other things we've tried. This hurts because even if each of the user's query returns less than a million rows, it adds up over time and the grid doesn't seem to release memory for what was there before.

Thanks for any help.

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 16 Dec 2013, 04:43 PM
Hello,

We have performed some tests binding RadGridView to a DataView. We could not encounter such problems though. 

Would it be possible for you to isolate it in a demo project and send it to us? You can take a look at this blog post for a reference on how to isolate an issue. 

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Phil
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or