Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Experts

Does anybody know a Grid Component which supports displaying a table "horizontal"?
It seems I’m not able to find the right keywords to google for this.

Thank you in advance
Bruno

[edit from="Bruno"]
What I want is a Grid control which will transpose the rows and columns of its data source, such that the columns are displayed where the rows would normally be, and the rows where the columns would normally be, something like:
Column1    Row1    Row2    Row3 ...
Column2    Row1    Row2    Row3 ...
Column3    Row1    Row2    Row3 ...
Column4    Row1    Row2    Row3 ...
...

[/edit]
Posted
Updated 20-Dec-14 3:13am
v2
Comments
Richard MacCutchan 20-Dec-14 8:12am    
What's wrong with DataGridView?
[no name] 20-Dec-14 8:26am    
Do you mean it is possible to do it with DataGridView? The thing I'm looking for is to "transpose" the display....means Table Columns are the rows and records should be displayed as columns.
Sorry for my bad English. Thank you for responding.
Bruno
Richard MacCutchan 20-Dec-14 8:43am    
Sorry, your original question was not clear. I don't know of any way that a normal DGV or associated controls can do that.
[no name] 20-Dec-14 8:45am    
Can you help me to better formulate my question?
Thank you
Bruno
Richard MacCutchan 20-Dec-14 9:13am    
See my edit to your question.

1 solution

Bruno, DataGridView is DataGridView and displays data as you provided them.
All you need to do is to transpose (pivot) data ;)

I think, you need to provide more details about the data source to be able to help you.
 
Share this answer
 
Comments
[no name] 20-Dec-14 11:03am    
Thank you Maciej
I'm looking more for a Grid with a property "Vertical/Horizontal - Display". I don't like to make the DB- query depended how results need to be displayed.
Therefore I can't accept your answer but a 5 for bother at this.
Bruno
Maciej Los 20-Dec-14 11:59am    
Thank you, Bruno ;)
I think, that vertical/horizontal dispaly property does not exists. You need to implement it. Why? There is no mechanism which automatically can convert rows to columns. Such of this conversion is data dependant.
Maciej Los 20-Dec-14 12:01pm    
[no name] 20-Dec-14 12:36pm    
I am ashamed. Used DevExpress since several versions and did not recognized this...I need to check. Accepted.
Thank you, Bruno
Maciej Los 20-Dec-14 13:21pm    
You're very welcome, Bruno ;)

Cheers,
Maciej

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900