<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : HOWTO: Multi row (-line) header?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : HOWTO: Multi row (-line) header?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 06:49:51 +0000</pubDate>
  <lastBuildDate>Thu, 18 Dec 2014 08:00:03 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=19218</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[HOWTO: Multi row (-line) header? : In this case it&amp;#039;s not usable...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19218&amp;PID=72993&amp;title=howto-multi-row-line-header#72993</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 19218<br /><strong>Posted:</strong> 18 December 2014 at 8:00am<br /><br />In this case it's not usable for me!<br>]]>
   </description>
   <pubDate>Thu, 18 Dec 2014 08:00:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19218&amp;PID=72993&amp;title=howto-multi-row-line-header#72993</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO: Multi row (-line) header? :   mgampi wrote:But as I remember...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19218&amp;PID=72992&amp;title=howto-multi-row-line-header#72992</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 19218<br /><strong>Posted:</strong> 18 December 2014 at 7:58am<br /><br /><p><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by mgampi" alt="Originally posted by mgampi" style="vertical-align: text-bottom;" /> <strong>mgampi wrote:</strong><br /><br />But as I remember header records are not the same as the report header. So am I the no longer possible to resize columns when I&nbsp; hide the original report header?</td></tr></table>Yes, you are right. But it is so close to desirable appearance.<br></p><br><br><br><br>]]>
   </description>
   <pubDate>Thu, 18 Dec 2014 07:58:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19218&amp;PID=72992&amp;title=howto-multi-row-line-header#72992</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO: Multi row (-line) header? : Thanks;I&amp;#039;ll give it a try...But...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19218&amp;PID=72990&amp;title=howto-multi-row-line-header#72990</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 19218<br /><strong>Posted:</strong> 18 December 2014 at 4:56am<br /><br />Thanks;<br><br>I'll give it a try...<br>But as I remember header records are not the same as the report header. So am I the no longer possible to resize columns when I&nbsp; hide the original report header?<br>]]>
   </description>
   <pubDate>Thu, 18 Dec 2014 04:56:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19218&amp;PID=72990&amp;title=howto-multi-row-line-header#72990</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO: Multi row (-line) header? : Hello Martin,You can use CXTPR...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19218&amp;PID=72989&amp;title=howto-multi-row-line-header#72989</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 19218<br /><strong>Posted:</strong> 18 December 2014 at 4:52am<br /><br />Hello Martin,<br><br>You can use CXTPReportControl::m_pSectionHeader &nbsp;with merged cells &nbsp; as multiline header. For example see&nbsp; ReportSample&nbsp; -&gt; menu -&gt; "REPORT CONTROL" -&gt; "Control test" -&gt; "Merge test"<br><br>Change CMergeView::OnCreate&nbsp;for code below<br><br>toolkitpro\Samples\ReportControl\ReportSample\MergeView.cpp &nbsp;<br><table width="99%"><tr><td><pre class="BBcode">int CMergeView::OnCreate(LPCREATESTRUCT lpCreateStruct)<br>{<br>	if (CXTPReportView::OnCreate(lpCreateStruct) == -1)<br>		return -1;<br><br>	CXTPReportControl&amp; wndReport = GetReportCtrl();<br>	<br>	wndReport.GetPaintManager()-&gt;SetGridStyle(TRUE, xtpReportGridSolid);<br>	wndReport.ShowGroupBy(FALSE);<br>	wndReport.ShowHeaderRows(TRUE);<br><br>	int nColumnCount = 7;<br>	int nHeaderCount = 2;<br>	int nRecordCount = 10;<br>	int nColumn;<br>	int nRecord;<br><br>	CXTPReportRecord *pRecord = NULL;<br>	<br>	for (nColumn=0; nColumn&lt;nColumnCount; nColumn++)<br>	{<br>		CXTPReportColumn *pColumn = new CXTPReportColumn(nColumn, _T(""), 90, TRUE);<br>		pColumn = wndReport.AddColumn(pColumn);<br>	}<br><br>	// Add header records<br>	for (nRecord=0; nRecord&lt;nHeaderCount; nRecord++)<br>	{<br>		pRecord = wndReport.GetHeaderRecords()-&gt;Add(new CXTPReportRecord());<br>		for (nColumn=0; nColumn&lt;nColumnCount; nColumn++)<br>		{<br>			CXTPReportRecordItemText *pItem = new CXTPReportRecordItemText();<br>			pItem-&gt;SetBackgroundColor(RGB(223,227,232));<br>			pItem-&gt;SetAlignment(xtpColumnTextCenter|xtpColumnTextVCenter);<br>			pRecord-&gt;AddItem(pItem);<br>		}<br>	}<br><br>	// Create multiline header<br>	wndReport.HeaderRowsAllowSort(FALSE);<br>	wndReport.HeaderRowsAllowGroup(FALSE);<br>	wndReport.HeaderRowsAllowAccess(FALSE);<br>	<br>	pRecord = wndReport.GetHeaderRecords()-&gt;GetAt(0);<br>	pRecord-&gt;GetItem(0)-&gt;SetCaption(_T("1"));<br>	pRecord-&gt;GetItem(3)-&gt;SetCaption(_T("Vehicle Id"));<br>	pRecord-&gt;GetItem(5)-&gt;SetCaption(_T("Last multiline column header"));<br><br>	pRecord = wndReport.GetHeaderRecords()-&gt;GetAt(1);<br>	pRecord-&gt;GetItem(0)-&gt;SetCaption(_T("First"));<br>	pRecord-&gt;GetItem(1)-&gt;SetCaption(_T("Second"));<br>	pRecord-&gt;GetItem(2)-&gt;SetCaption(_T("Third"));<br>	pRecord-&gt;GetItem(3)-&gt;SetCaption(_T("Fourth"));<br>	pRecord-&gt;GetItem(4)-&gt;SetCaption(_T("Fifth"));<br>	<br>#if _XTPLIB_VERSION_PREFIX &gt;= 1511<br>	wndReport.GetHeaderRecords()-&gt;MergeItems(CXTPReportRecordItemRange(0,2,0,0));<br>	wndReport.GetHeaderRecords()-&gt;MergeItems(CXTPReportRecordItemRange(3,4,0,0));<br>	wndReport.GetHeaderRecords()-&gt;MergeItems(CXTPReportRecordItemRange(5,6,0,1));<br>#endif<br><br>	// Add records<br>	for (nRecord=0; nRecord&lt;nRecordCount; nRecord++)<br>	{<br>		pRecord = wndReport.AddRecord(new CXTPReportRecord());<br>		for (nColumn=0; nColumn&lt;nColumnCount; nColumn++)<br>		{<br>			CString sText;<br>			sText.Format(_T("Row %d, %d"), nRecord, nColumn);<br><br>			CXTPReportRecordItemText *pItem = new CXTPReportRecordItemText(sText);<br>			pRecord-&gt;AddItem(pItem);<br>		}<br>	}<br>	<br>	wndReport.Populate();<br>	wndReport.SetFocus();<br><br>	return 0;<br>}</pre></td></tr></table>&nbsp;<br>]]>
   </description>
   <pubDate>Thu, 18 Dec 2014 04:52:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19218&amp;PID=72989&amp;title=howto-multi-row-line-header#72989</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO: Multi row (-line) header? : Any news on this issue?When will...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19218&amp;PID=68031&amp;title=howto-multi-row-line-header#68031</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 19218<br /><strong>Posted:</strong> 19 April 2012 at 10:46am<br /><br />Any news on this issue?<br>When will it be available?<br>]]>
   </description>
   <pubDate>Thu, 19 Apr 2012 10:46:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19218&amp;PID=68031&amp;title=howto-multi-row-line-header#68031</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO: Multi row (-line) header? : When finished? An estimate, please!  ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19218&amp;PID=66914&amp;title=howto-multi-row-line-header#66914</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 19218<br /><strong>Posted:</strong> 24 November 2011 at 5:12am<br /><br />When finished? An estimate, please!]]>
   </description>
   <pubDate>Thu, 24 Nov 2011 05:12:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19218&amp;PID=66914&amp;title=howto-multi-row-line-header#66914</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO: Multi row (-line) header? : Hello Martin,this is currently...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19218&amp;PID=66906&amp;title=howto-multi-row-line-header#66906</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 19218<br /><strong>Posted:</strong> 23 November 2011 at 11:44pm<br /><br />Hello Martin,<br><br>this is currently not supported, but I already have it on my todo list.<br><br>Andre<br><br>]]>
   </description>
   <pubDate>Wed, 23 Nov 2011 23:44:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19218&amp;PID=66906&amp;title=howto-multi-row-line-header#66906</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO: Multi row (-line) header? :  Hi;Is it possible to create...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19218&amp;PID=66902&amp;title=howto-multi-row-line-header#66902</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 19218<br /><strong>Posted:</strong> 23 November 2011 at 12:42pm<br /><br />Hi;<br><br>Is it possible to create a multi row header in report control as shown in this screenshot?<br><br><img src="uploads/109/Multiline_Header.png" height="50" width="740" border="0" /><br><br>I don't want to use header rows collection, because I want the resize/move/order columns functionality of the default report header. <br>Do I have to create my own header control????<br><br>TIA<br>]]>
   </description>
   <pubDate>Wed, 23 Nov 2011 12:42:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19218&amp;PID=66902&amp;title=howto-multi-row-line-header#66902</guid>
  </item> 
 </channel>
</rss>