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.
Unfortunately, activation email could not send to your email. Please try again.

Olap Grid doesn''t display anthing

Thread ID:





95724 Jul 27,2010 11:31 AM Jul 27,2010 02:37 PM WPF 1
Tags: OlapGrid
Ryan Schroeder
Asked On July 27, 2010 11:31 AM

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 02:37 PM

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.

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.