Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

My DataGrid gets slower and slower....

$
0
0

Hey,

 

i implemented a DatGrid inside a Tabitem and fill it with class which looks like this:

public class DataGrid_ContentClass 
    {
        public ImageSource _ImageSource { get; set; }
        public string _FileName { get; set; }
        public string _FileExtension { get; set; }
        public string _FileSize { get; set; }
        public bool _IsFile { get; set; }
        public string _LastDateModified { get; set; }
        public string[] _array { get; set; }
    }

i don't wont to use an ObservableCollection!!!!!

The purpose of the grid is, to hold items to Display files and Folders inside a Directory.

But now, following happened, from Directory to Directory the Grid gets slower and slower and i donÄt know why.

At the end i get an "Out of Memory" Exception.

I fill the DataGird with

DataGrid.Items.Add (new DataGrid_ContentClass );

 

Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>