Print Page | Close Window

Multi-line column headers

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=19010
Printed Date: 23 November 2024 at 11:59pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multi-line column headers
Posted By: Graham
Subject: Multi-line column headers
Date Posted: 03 October 2011 at 6:26pm
Is it possible to have multi-line column headers? If so, how is this achieved?
 
Thanks,
Graham



Replies:
Posted By: Willowmaster
Date Posted: 04 October 2011 at 2:32am
Maybe you can use Markup to do this? I'm not into XAML but there is a lot you can do with it.
Set the property EnableMarkup to True and you can use XAML.


-------------
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0





Posted By: chc_gpi
Date Posted: 06 October 2011 at 11:37am
Hi,
I try the same thing, Graham
Have you find how to do ?

Thanks


Posted By: chc_gpi
Date Posted: 18 October 2011 at 9:29am
I managed to do it :

set PaintManager:FixedRowHeight to false

Use chr(10) in the column header to make multi-line header




Posted By: Graham
Date Posted: 18 October 2011 at 10:34am
We no longer require the change, but it's good to know for possible future application.
 
Thanks


Posted By: SteveStraley
Date Posted: 27 October 2011 at 3:49pm
Hi.
 
I set the FixedRowHeight property of the PaintManager propert of the AXReportControl and I added a \r character in the string of text for the column header and it do not seem to do anything.   The row height was not changed and the \r character did not show up in the header and the text was not separated.
 
Am I missing something here?
 
Steve


Posted By: SteveStraley
Date Posted: 27 October 2011 at 4:03pm
All,
 
A quick update.   I used the following on the construction of the column for the report:
 

o.HeaderAlignment = XTPColumnAlignment.xtpAlignmentWordBreak;

Where "o" is the return value from the Columns.Add() method.   This works on word breaks but not at specific locations within the column header.   In addition, if the grid is "refreshed" the column header width reverts back to FixedHeight!
 
Thoughts?   Ideas?
 
Steve



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net