This is a migrated thread and some comments may be shown as answers.

pivot table

4 Answers 93 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David Brenchley
Top achievements
Rank 1
David Brenchley asked on 20 Oct 2010, 10:48 PM
Is it possible to pivot the gridview so that columns behave as rows, and vice-versa?  For example, when a row is added, it actually adds a column and the rows stay static.

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 21 Oct 2010, 07:44 AM
Hi,

 You can try the approach demonstrated on this blog post

Sincerely yours,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
David Brenchley
Top achievements
Rank 1
answered on 25 Oct 2010, 04:03 PM
The one piece of this that is missing is a way to put headers on these rows.  Are there any examples of how to do this while implementing the posted solution above?
0
Vlad
Telerik team
answered on 26 Oct 2010, 07:19 AM
Hi,

 You can create your own custom column to achieve this. Something similar to this demo

Kind regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
David Brenchley
Top achievements
Rank 1
answered on 02 Nov 2010, 05:54 PM
thank you.  The row header suggestion does work.  However I have found a few more issues, or rather, limitations to this implementation.
1.  You don't have control over which properties are displayed.
2.  You don't have the option on which order the properties are displayed.
3.  You don't have the option to have to have different column types for the different rows.  For example I would want some of the rows in the column to be drop down columns and others masked columns.

I suppose the third option could be handled with the column extension to GridViewColumn, but that seems messy to me and liable to slow the grid down considerably.
Tags
GridView
Asked by
David Brenchley
Top achievements
Rank 1
Answers by
Vlad
Telerik team
David Brenchley
Top achievements
Rank 1
Share this question
or