Split GridView into several columns?

4 posts, 0 answers
  1. Thomas
    Thomas avatar
    12 posts
    Member since:
    Jul 2011

    Posted 18 Mar 2013 Link to this post

    Hi,

    I'm currently searching for a simple solution to display a GridView (or something similar) in several columns:
    e.g.

    Header1  Header 2|-->Header1 Header 2
    R0 C0     R0 C1     |    R3 C0    R3 C1
    R1 C0     R1 C1     |    R4 C0    R4 C1
    R2 C0     R1 C1     |    R5 C0    R5 C1
    |---------------------->|


    Any Help is welcome
    Regard
    Thomas
  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 19 Mar 2013 Link to this post

    Hello,

    Looking at your illustration I believe it is something that can be achieved using RadGridView for WPF .
    However to be more specific I will need some more details on what exactly are you trying to achieve.
    Can you elaborate a bit more ?

    Kind regards,
    Pavel Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Thomas
    Thomas avatar
    12 posts
    Member since:
    Jul 2011

    Posted 19 Mar 2013 Link to this post

    Hi Pavel,

    I have a Collection/Table with about 5-50 items/records.
    For each item there should be displayed only a few values (e.g. Key and Value).

    If I display this in a normal GridView it looks a little bit strange as the width of the screen is not used
    Key Value
    K0   V0
    ..
    K49 V49

    So my idea is to break this information into several columns, so that the width of the screen is better used.
    Key Value Key Value
    K0   V0     K2   V2
    K1   V1     ..

    Regards
    Thomas
  4. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 19 Mar 2013 Link to this post

    Hello,

    I understand now . I believe the only way s to use a proxy collection between your original collection and RadGridView. For example based on your original table , you may programmatically create  a new table having data transposed the way you need it . Then you can feed this table to the ItemsSource property of RadGridView  and let it auto-generate columns.

    In case you have troubles implementing this approach let me know so I can assist further.

    Kind regards,
    Pavel Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top