如何在Janus GridEx中包装标题标题 [英] How to wrap header caption in Janus GridEx
问题描述
我在带有.NET 2.0的Windows应用程序(NOT WPF)中使用Janus控件.在我的应用程序的所有网格中,我想包装列标题的标题.我尝试了很多代码,并搜索了很长时间.但是没有用过.有人可以帮我在Janus中包装网格标题吗? 像这样:
I'm using Janus controls in my Windows Application (NOT WPF) with .NET 2.0. In all of the grids in my application, I want to wrap the caption of column header. I tried many codes and searched for it for a long time. But no used. Would anyone help me to wrap the caption of the grids in Janus? Something like this:
这是一个长标题"
成为:
这是一个
长标头"
PS:如您所知,控件名称为GridEx.
PS: As you know, the control name is GridEx.
谢谢. (投票人!请原谅我简单的问题和我的英语不好)
With thanks. (Down-voters! please excuse my simple question and my poor English language)
推荐答案
在GridEx
属性中使用ColumnSet
,并在其中添加所有列.
Use ColumnSet
in GridEx
properties and add all columns in it.
设置ColumnSetHeaderLines = 2
(如果需要,可以根据标题大小增加).
Set ColumnSetHeaderLines = 2
(if you need you can increase according to your header size).
还要设置GridEx
根表属性:
CellLayoutMode = UseColumnSet
这篇关于如何在Janus GridEx中包装标题标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!