in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Can't get a pivotgrid to work...Must be something simple

Last post 10/20/2008 11:05 AM by Jim Clay. 6 replies.
Page 1 of 1 (7 items)
Sort Posts:
Previous Next
  • 10/9/2008 4:23 PM

    • Jim Clay
    • Top 200 Contributor
    • Joined on 1/14/2008
    • Sandpoint, ID
    • Posts 57

    Can't get a pivotgrid to work...Must be something simple

    I have created a simple form with a pivot grid and an XPView which is set as it's datasource.  I see all of the fields and am able to run without any errors, but there is no data in the PivotGrid.

    I know that the XPView is working because I added a standard GridControl as well and set it's datasource to the view also and it shows all of the data.

    I just am unable to see any data in the PivotGrid.

    Any suggestions on where I might start???  I know that is pretty vague, but I'm not sure what is going on.

    Thanks,
    JIm

  • 10/9/2008 4:46 PM In reply to

    Re: Can't get a pivotgrid to work...Must be something simple

    What type of data are you binding to the grid for the DataArea? If you are binding text, try setting SummaryType="Max" on the DataArea field.

    Example:

    <dxwpg:PivotGridField Area="DataArea" FieldName="Response" Caption="Response" SummaryType="Max" />

  • 10/9/2008 5:05 PM In reply to

    • Jim Clay
    • Top 200 Contributor
    • Joined on 1/14/2008
    • Sandpoint, ID
    • Posts 57

    Re: Can't get a pivotgrid to work...Must be something simple

    Thanks for the response Joey.

    The data in the Data area is an Int32.

    My XpView queries order, products and shipments and comes up with 4 properties:  Product #, Work Order #, Ship Date and Ship Quantity.

    I have set the Ship Date as 4 different fields in the PivotGrid with GroupIntervals set as DateYear, DateQuarter, DateMonth and DateDay in order to be able to drill down to the day level.  I put the Product # in the column area, the all 4 date fields in the row area and the Ship Quantity in the data area.  I have a criteria on the view so it will pull the shipping data for only one product.

    Like I said, I have included a GridControl on the form as well to make sure I am getting data and that is fine, but the PivotGrid doesn't show anything.

    Jim

  • 10/19/2008 7:41 PM In reply to

    Re: Can't get a pivotgrid to work...Must be something simple

    I'm having the same problem. Did you work out what the cause was?

    I can use one sql query and it works fine. A different sql query does not work.

  • 10/19/2008 7:52 PM In reply to

    • Jim Clay
    • Top 200 Contributor
    • Joined on 1/14/2008
    • Sandpoint, ID
    • Posts 57

    Re: Can't get a pivotgrid to work...Must be something simple

     Dan,

    I am so far behind on my current project that I didn't have time to deal with this.  I tried with a dataset as the datasource instead of an XPView and it works great.  Maybe I will come back to this next year when I have this thing live and have got through the first handfull of enhancements that are already on the list! Surprise

    My ultimate goal is to utilise SSAS as an OLAP engine, but I don't have time to learn that either Sad.

    Good luck with your issues.

    Jim

     

  • 10/19/2008 11:34 PM In reply to

    Re: Can't get a pivotgrid to work...Must be something simple

    I discovered the cause of my problem.

    I had something like:

    grid.Fields.Add(new PivotGridField("Name", PivotArea.RowArea);

    This added a field to the grid ok. The field in the datasource was called "name", not "Name", so it was showing nothing in the grid.

    It appears as though FieldName's are case-sensitive.

  • 10/20/2008 11:05 AM In reply to

    • Jim Clay
    • Top 200 Contributor
    • Joined on 1/14/2008
    • Sandpoint, ID
    • Posts 57

    Re: Can't get a pivotgrid to work...Must be something simple

     Good info to know Dan.

    Thanks

Page 1 of 1 (7 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED