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

Displaying bound data that needs a flip

1 Answer 22 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 28 Apr 2009, 08:18 PM
I have a collection, something like this

Data Source (custom object)

This is a List<MyCustomObject> that contains all the properties.

Properties (strings):
  • ID
  • DESCRIPTION
  • VALUE

Upon binding to the grid, i need to flip this. I need each unique ID to become a new column, the value to be the data of that column, and the descriptoins to represent rows.

Example of final outcome:

                          ID           ID          {Infinite across}
DESCRIPTION VALUE     VALUE
DESCRIPTION VALUE     VALUE
DESCRIPTION VALUE     VALUE
                                           {infinite down}

How do you recommend i accomplish this?

1 Answer, 1 is accepted

Sort by
0
Vlad
Top achievements
Rank 1
answered on 29 Apr 2009, 05:51 AM
Tags
GridView
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Vlad
Top achievements
Rank 1
Share this question
or