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

Split GridView into several columns?

3 Answers 178 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 18 Mar 2013, 02:05 PM
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

3 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 19 Mar 2013, 09:37 AM
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.

0
Thomas
Top achievements
Rank 1
answered on 19 Mar 2013, 10:14 AM
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
0
Pavel Pavlov
Telerik team
answered on 19 Mar 2013, 12:18 PM
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.

Tags
GridView
Asked by
Thomas
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Thomas
Top achievements
Rank 1
Share this question
or