We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Olap Grid doesn''t display anthing

Thread ID:





95724 Jul 27,2010 03:31 PM UTC Jul 27,2010 06:37 PM UTC WPF 1
Tags: OlapGrid
Ryan Schroeder
Asked On July 27, 2010 03:31 PM UTC

I'm using a userControl to display a olapGrid in a WinForm. I get no errors, but the grid is completely blank when i run it.

public UserControl1()
OlapDataManager odm = new OlapDataManager(connectionstring);

var olrep = new OlapReport();
olrep.CurrentCubeName = cubename;

//Creating Dimension elements to add in Categorical axis
DimensionElement dimensionElementColumn = new DimensionElement();

dimensionElementColumn.HierarchyName = "RPT TIME";
dimensionElementColumn.AddLevel("RPT TIME", "YEAR");
dimensionElementColumn.Name = "YEAR";
//Creating Measure Elements
MeasureElements measureElementColumn = new MeasureElements();
measureElementColumn.Elements.Add(new MeasureElement { Name = "PREMIUM" });

//Creating Dimension elements to add in Series axis
DimensionElement dimensionElementRow = new DimensionElement();
dimensionElementRow.HierarchyName = "GARE CAGS";
dimensionElementRow.AddLevel("GARE CAGS", "CAGS");
dimensionElementRow.Name = "CAGS";
olrep.CategoricalElements.Add(new Item { ElementValue = dimensionElementColumn });

//Adding Measure Element
olrep.CategoricalElements.Add(new Item { ElementValue = measureElementColumn });

//Adding Row Members
olrep.SeriesElements.Add(new Item { ElementValue = dimensionElementRow });

olapGrid1.OlapDataManager = odm;


Ryan Schroeder
Replied On July 27, 2010 06:37 PM UTC

Fixed this problem... I had to inherit from SampleWindow instead of Window.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon