如何打印垂直文本,即标题 [英] how to print vertical text i.e header

查看:72
本文介绍了如何打印垂直文本,即标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有34列和数百行数据。以前使用列标题作为数据描述标题在电子表格中显示的数据。转换东西会给它一个相当不寻常的看法。



(我的假设是,当你使用术语行标题时,你建议将所有标题放下DataGridView表的左侧。)



许多列标题都有相当长的单词,所以即使使用自动换行列,列也会不必要地变宽。

这在Excel中没有问题,因为标题单元格文本可以垂直对齐。



所以,理想情况下我想在列中放置垂直文本标题 - 就像电子表格一样。



作为一个旧电子表格的人我以前从未使用过DataGridView来显示数据。也许我错过了一些非常有趣的东西。



希望我能更好地解释我的问题,希望有一个简单的解决方案。



无论如何要自动调整标题?因为我的标题在运行期间是动态生成的,我无法完成总字符

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

推荐答案

请阅读我对该问题的评论。



我猜你在谈论 Windows.Forms.DataGridView 。如果是,请参考: DataGridView垂直文本 [ ^ ]
Please, read my comment to the question.

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


这篇关于如何打印垂直文本,即标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆