Print Page | Close Window

multi row header feature

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=8337
Printed Date: 22 November 2024 at 6:07pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: multi row header feature
Posted By: brucerain
Subject: multi row header feature
Date Posted: 07 October 2007 at 10:12pm
Will Codejock support multi-row header feature?

Thanks!



Replies:
Posted By: sserge
Date Posted: 09 October 2007 at 2:10pm
Multiline text is supported for the header in the same way as for cells.
Set FixedRowHeight to FALSE and add WordBreak flag to Alignment.
Also you may use ‘\n’ char in the header text.

--
WBR,
Serge


Posted By: johnlewe
Date Posted: 05 November 2007 at 10:38am
I did try this and it works to a point, however, if some header columns have 3 lines of text and some just have 1 line of text, the column header with the 1 line of text is centered vertically in the column header which looks bad and is not the standard display arrangement for column headings that have a mixture of 1,2, and 3 line column headings.

ReportControl:

----------------------
Vendor
Part      Quantity
Number
----------------------

Display Standard:

----------------------
Vendor
Part
Number    Quantity
----------------------

In other words, they column heading text should start vertically from the bottom, so if only 1 line of text it is on the bottom line, if 2 lines of text then it is on the bottom 2 lines, etc.


-------------
John Lewe
Orlando, FL


Posted By: Baldur
Date Posted: 05 November 2007 at 3:12pm
To adjust, add newlines before or after your text as many you need to adjust at top, center or bottom.


Posted By: johnlewe
Date Posted: 06 November 2007 at 10:03am
Thanks, that is definately a work-around (although tedious), but other controls do this for you automatically. The purpose for 3rd party controls is to take the drudgery out of the equation.

-------------
John Lewe
Orlando, FL


Posted By: znakeeye
Date Posted: 28 February 2008 at 4:39am
I believe this feature request is similar to mine. I want to add a row just below the header, with filtering options. This row must not be movable!
 
|----------------------------------------|
| Date |  Folder       | Description |
|----------------------------------------|
| DATE | COMBO \/  | EDIT           | <--- filtering using different controls!
|----------------------------------------|
|Row 1...                                     |
|Row 2                                        |
|Row n...                                     |
|----------------------------------------|
 
Is this possible with the current implementation?


Posted By: mgampi
Date Posted: 28 February 2008 at 6:40am
Hi;
I did it this way:
 
GetHeaderRecords()->Add(new CStateReportRecord());
HeaderRowsAllowEdit(TRUE);
ShowHeaderRows(TRUE);
 


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022


Posted By: zaksoft
Date Posted: 29 February 2008 at 12:16am
I'm also interested in this, but where CStateReportRecord() comes from ? Any sample code to show how it is derived from CXTPReportRecord ?
 
TIA


-------------
VS2022 - MFC MBCS Statically linked

XTP 23.1 Static Link

---------------------------------------------------------

Davide Zaccanti - ZakSoft - www.zaksoft.com



Posted By: znakeeye
Date Posted: 29 February 2008 at 2:44am
zaksoft, you could use any record class. See CMessageRecord in ReportSample.


Posted By: Kurisu
Date Posted: 04 March 2008 at 4:14pm
Just reading the tips here... I have a question regarding the Multiline Headers.

When Alignment is combined with the break line flag I can only seem to get it to respect my alignment flag for cells and not the header itself.

i.e.

nAlign = m_bMultilineSample ? (xtpColumnTextCenter | DT_WORDBREAK) : (nAlign & (~DT_WORDBREAK));

 pColumn->SetAlignment(nAlign); <--- Is Centered.. Works!
 pColumn->SetHeaderAlignment(nAlign); <--- Always left Aligned?

Is there a way to get CENTERED multiline headers?


Posted By: znakeeye
Date Posted: 05 March 2008 at 2:54am
If you ask me, the header/footer rows are quite buggy. I think I have posted like 5 buts regarding them...
 
Hence, if you suspect a bug, post it. With a bit of luck, they will be fixed in v12 :)



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