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

List items horizontally

1 Answer 241 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 03 Mar 2021, 03:23 AM

Hi,

I have List<Class> Classes, and List<Student> Students in each Class. I would like to show classes in different columns and students in different rows like the table below. Is it possible to do it by binding Classes to ItemsSource of RadGridView and make the items list horizontally?

 

Class 1   Class 2   Class 3   Class 4
Andy       Barry      Cathy      Darren
Eric         Frank     Gary        Helen
Iris          Jason     Kyle         Leon
Mary       Neil        Oscar      Peter

 

Thanks,

David

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 05 Mar 2021, 12:25 PM

Hi David,

To achieve the desired result you will need to actually transpose your data, as this cannot be done by the RadGridView control alone. Here are a few helpful resources on the matter:

I hope you find these resources helpful in achieving the expected layout.

Regards,
Dilyan Traykov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
GridView
Asked by
David
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or