EhLib中多层表头的实现问题(100分)

  • 主题发起人 主题发起人 YNTW
  • 开始时间 开始时间
Y

YNTW

Unregistered / Unconfirmed
GUEST, unregistred user!
形如:
|AAAAAAAAAAAAAAAAAAAAAAAAAAA|EEEEEEEEEEEEEEEEEEEEEEEE|
|BBBBB|CCCCCC|DDDDDDDDDDDDDD|FFFFFFFFFFF|GGGGGGGGGGGG|
请高手指点。
 
定义五列
令dbgrideh的usemutliTitle属性为true
令col的title如下
col1:AA|bb
col2:AA|cc
col3:AA|DD
col4:FF|EE
col5:FF|GG
| AA | FF |
|BB|CC|DD|EE|GG|

 
谢谢arm,今天我找到帮助了,啃了半天E文,总算弄清楚了,是在每列的Title.Caption
中添加形如Title1|SubTitle1这样的字串,嘻嘻,所以分一半给你了,如何?
请斑竹结束问题了。

Complex titles.
To create title corresponding to several columns, the label of the field or
caption of title of the column must consist of several parts divided by sign
"|", where every part is same for several columns. Other fields or captions must
contain same text in corresponding parts. Set also DBGridEh.UseMultiTitle
property to True.

For instance:
Field1.DisplayLabel := 'Title1|SubTitle1'; or DBGridEh.Columns[0].Title.
Caption := 'Title1|SubTitle1';
Field2.DisplayLabel := 'Title1|SubTitle2'; or DBGridEh.Columns[1].Title.
Caption := 'Title1|SubTitle2';
 
接受答案了.
 
后退
顶部