Multi-dimension datagrid.

  • Thread starter Thread starter Peter Rilling
  • Start date Start date
P

Peter Rilling

I have a set of data that has both a horizontal and a vertical dimension,
like an OLAP cube might have. I was wondering if the .NET datagrid supports
labels on the vertical axis. I have only seen the ability to label the
columns in a datagrid, but because there is a vertical component, I need to
be able to label each row. Can this be done with what is available in .NET?
 
I don’t know what you have as a data source. If you use a data table you can
add a column to the source data table and put the label values in that column.
I try to only use a data grid for display purposes only and actually make my
changes in the data source and rebind to the grid.
 
The data source is an OLAP fact table. So, for instance, suppose that I
wanted to see how much code was added to a particular project for a
particular date range. Each column might represent a single day between the
range, an each row would represent the project that the code belonged to.
The cell could contain the number of lines added. So you could see that
project ABC at 1500 lines added on SOMEDAY while only having 500 lines added
on SOME_OTHER_DAY.

I know I could use Analysis Services to do this, but I was just wondering if
the datagrid allowed anything like this.
 
Back
Top