Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1145
FlatDataSource and System.OutOfMemory Exception
posted

Wired my first xamPivotGrid into a user control that is consumed by a winforms app.  Borrowed a method from these forums that takes a DataTable and dynamically all columns and rows to an Ilist, which is set to the pivotDataSelector and pivotGrid's DataSource.

My application loads at a cost of 90,512k.  I load the data into the pivot grid and it hit 96,180.  The DataTable contains 1,216 rows and 8 columns.  Dragging just 3 columns to the Rows box drives the application memory cost to ~1,650,227k before the application throws a System.OutOfMemory exception.

As my first venture, I am obviously missing something critical here, but not finding much and not really sure what to look for.  Feeling additional paing because I am under the gun to get something working and performing by next Monday.  I have seen code examples that set hierarchies and a whole bunch of other things that do not seem very appealing because of hard-coded column names, etc., and not even sure these would help me?

In short, I guess what I need is something like "Jaime, if your clients will be working with large (is my example above large???) data tables, then you need to do this..."

I will seriously cry if I can't get this to perform well.  We purchased the IG Ultimate just for the pivot grid and time is running out for me... perhaps literally at that!

Many thanks!!!  -Jaime

Parents
No Data
Reply
  • 8831
    Suggested Answer
    posted

    Hello Jaime,

    Could you provide us at least your initialization code? Does your application perform well if you feed it using another items source? I mean you can try to create a dummy list populated with just few manually generated items and pass that list to FlatDataSource.ItemsSource. Also which version of the control you have?

     

    Thanks.

    PPilev.

Children