Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I've got 34 columns and several hundred rows of data. The data used to be presented on spreadsheets using columns headings as descriptive titles for the data. To transpose things would give it a rather unusual view.

(My assumption is that when you use the term "row header" you're suggesting putting all the headings down the left side of the DataGridView table.)

Many of the column headings have fairly long words so even with word wrapping the columns end up being unnecessarily wide.
This was no problem in Excel since the title cell text could be aligned vertically.

So, ideally I would like to put vertical text in the column headers - just like the spreadsheets.

As an old spreadsheet guy I've never used DataGridView before to display data. Perhaps I'm missing something very fundermental here.

Hope I've explained my problem better, and hopefully there's a simple solution.

Anyway to adjust the header automatically ?? as my header is dynamic generate during runtime and i cant perdict the the total characters
Posted
Updated 14-Mar-14 2:26am
v2
Comments
Maciej Los 15-Mar-14 10:42am    
Window form, WPF, Web Control?

1 solution

Please, read my comment to the question.

I guess you're talking about Windows.Forms.DataGridView. If yes, please refer this: DataGridView Vertical Text[^]
 
Share this answer
 

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