pivot table

5 posts, 0 answers
  1. David Brenchley
    David  Brenchley avatar
    67 posts
    Member since:
    Jun 2010

    Posted 20 Oct 2010 Link to this post

    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.
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 21 Oct 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. David Brenchley
    David  Brenchley avatar
    67 posts
    Member since:
    Jun 2010

    Posted 25 Oct 2010 Link to this post

    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?
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 26 Oct 2010 Link to this post

    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
  6. David Brenchley
    David  Brenchley avatar
    67 posts
    Member since:
    Jun 2010

    Posted 02 Nov 2010 Link to this post

    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.
Back to Top
UI for WPF is Visual Studio 2017 Ready