Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I just need a view where I can add columns, rather adding rows in ListView. What kind of control I can use for that. Basically I want to see the ListView vertically, where all the column headings are in the first column.

Comments really appreciate.
Posted
Comments
BillWoodruff 27-Nov-13 7:09am    
Well, yes, you could simulate a ListView rotated 90 degrees where what are now columns become rows, and you add a Column, rather than a Row ... but, then ...

What functionality do you expect out of it: all the functionality the standard ListView Control in .NET WinForms gives you now ?
CodingLover 27-Nov-13 21:30pm    
I just worried about the way it looks like. I want to display the data like that to give a better picture.
CodingLover 27-Nov-13 21:30pm    
Can you tell me how can I rotate 90 degree the listview please.

1 solution

There is no control I know of that will do that: they all expect row oriented data because that is what users tend to expect, and databases and so forth generally provide.

However, it wouldn't be too difficult to create your own, possibly by embedding a DataGridView in a UserControl and removing the headers and so forth. Make the first column read only, and change it's background colour and it shouldn't be to difficult to complete.

Strange request though!
 
Share this answer
 
Comments
CodingLover 27-Nov-13 21:32pm    
Wow, that's a good suggestion. Anyway, if I can do it with a ListView rather than the DataGridView it's easy. Because dynamically I have to add content into it. Any feedback on that :)
OriginalGriff 28-Nov-13 3:41am    
Should work just as well - you can easily add columns to either control.

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