<?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 : Moving Columns</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Moving Columns]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 02 May 2026 00:12:17 +0000</pubDate>
  <lastBuildDate>Tue, 01 Sep 2015 04:10:49 +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=22701</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[Moving Columns : Hi,Thanks, I missed this ItemIndex...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22701&amp;PID=73841&amp;title=moving-columns#73841</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4820">skiman</a><br /><strong>Subject:</strong> 22701<br /><strong>Posted:</strong> 01 September 2015 at 4:10am<br /><br />Hi,<br><br>Thanks, I missed this ItemIndex property. <br><br>So no need anymore to keep the original index in the KEY property. <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" alt="Smile" title="Smile" /><br>]]>
   </description>
   <pubDate>Tue, 01 Sep 2015 04:10:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22701&amp;PID=73841&amp;title=moving-columns#73841</guid>
  </item> 
  <item>
   <title><![CDATA[Moving Columns : Sorry, I meant ItemIndex Property...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22701&amp;PID=73840&amp;title=moving-columns#73840</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22701<br /><strong>Posted:</strong> 31 August 2015 at 11:08am<br /><br />Sorry, I meant &nbsp;ItemIndex Property of ReportColumn Object.<br>From documentation<br><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Quote" alt="Quote" style="vertical-align: text-bottom;" /> Remarks<br>This is the index of the column given when added to the ReportControl's collection of columns.  The ItemIndex starts at 0 and increments by 1 for each column in the ReportControl.  The ItemIndex will not change when the columns are moved (dragged and dropped to another location).<br><br>The ItemIndex is used to find and return a reference to a column.  Since the Index of the column might change frequently, the ItemIndex is used when the column needs to be accessed.</td></tr></table>]]>
   </description>
   <pubDate>Mon, 31 Aug 2015 11:08:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22701&amp;PID=73840&amp;title=moving-columns#73840</guid>
  </item> 
  <item>
   <title><![CDATA[Moving Columns : You wrote: When you move columns...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22701&amp;PID=73838&amp;title=moving-columns#73838</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4820">skiman</a><br /><strong>Subject:</strong> 22701<br /><strong>Posted:</strong> 31 August 2015 at 3:48am<br /><br /><i>You wrote:When you move columns their indexes are not changed, just their order. So C5 - always points to the column with index 5.<br><br></i>I'm using the active-x evaluation version&nbsp; 16.4.0, and the index IS CHANGING when moving columns. I tested as follows:<br>When creating the columns:<br>oColumn := oReport:Columns:add(0, "Category", 12, .t.)<br>oColumn:key := str(oColumn:index,2)<br>...<br><br>So I put the index for each column in the KEY property. <br><br>When the report is created, I do the following:<br>nCols := oReport:Columns:Count -1 <br>for x = 0 to nCols<br>&nbsp;&nbsp;&nbsp; show oReport:columns(x):index<br>&nbsp;&nbsp;&nbsp; show oReport:columns(x):key<br>next<br>For each column, the index is equal to the key. <br><br>When I move a column, and checks it again, the INDEX is changed. The index isn't corresponding anymore to the KEY which obviously isn't changed.<br><br>This behaviour poses a lot of problems when columns with subtotals are moved. This is why I need to change the formula. I'm using the value in the KEY property to define which column must have subtotals.<br><br>Since the data shown is still correct, there must be a property that knows which item of the record must be shown. After moving a column for 4 to column 2, the index is changed. However it is still oRecord:item(4) which is shown. <br><br><br><br><br><br><br><br>]]>
   </description>
   <pubDate>Mon, 31 Aug 2015 03:48:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22701&amp;PID=73838&amp;title=moving-columns#73838</guid>
  </item> 
  <item>
   <title><![CDATA[Moving Columns : When you move columns their indexes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22701&amp;PID=73821&amp;title=moving-columns#73821</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22701<br /><strong>Posted:</strong> 28 August 2015 at 11:33am<br /><br />When you move columns their indexes are not changed, just their order. So C5 - always points to the column with index 5.]]>
   </description>
   <pubDate>Fri, 28 Aug 2015 11:33:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22701&amp;PID=73821&amp;title=moving-columns#73821</guid>
  </item> 
  <item>
   <title><![CDATA[Moving Columns : Hi,I&amp;#039;m using the active-x...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22701&amp;PID=73820&amp;title=moving-columns#73820</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4820">skiman</a><br /><strong>Subject:</strong> 22701<br /><strong>Posted:</strong> 28 August 2015 at 8:24am<br /><br />Hi,<br><br>I'm using the active-x version.<br><br>I tried to change the groupformula of the grouprow dynamically when a column is moved. <br>Sample:<br>formula SUMSUB(C5:C6) is changed to SUMSUB(C3:C4) when the column is moved. The subtotals are moving, but strangely they remains now zero. I have no clue what the cause of this behaviour could be.<br><br>]]>
   </description>
   <pubDate>Fri, 28 Aug 2015 08:24:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22701&amp;PID=73820&amp;title=moving-columns#73820</guid>
  </item> 
  <item>
   <title><![CDATA[Moving Columns :  Hello Chris,Subtotals are linked...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22701&amp;PID=73816&amp;title=moving-columns#73816</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22701<br /><strong>Posted:</strong> 28 August 2015 at 6:26am<br /><br />Hello Chris,<br><br>Subtotals are linked to appropriate columns.<br><br>If you have access to C++ project &nbsp;then you can change this behaviour in CXTPReportPaintManager::DrawGroupRow method (toolkitpro\Source\ReportControl\XTPReportPaintManager.cpp). Index of appropriate column is in iCol variable.<br><br>Regards,<br>Oleksandr Lebed]]>
   </description>
   <pubDate>Fri, 28 Aug 2015 06:26:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22701&amp;PID=73816&amp;title=moving-columns#73816</guid>
  </item> 
  <item>
   <title><![CDATA[Moving Columns : Hi,I have a report control with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22701&amp;PID=73807&amp;title=moving-columns#73807</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4820">skiman</a><br /><strong>Subject:</strong> 22701<br /><strong>Posted:</strong> 26 August 2015 at 9:30am<br /><br />Hi,<br><br>I have a report control with the same columns as in the following sample screenshot.<br><img src="https://support.codejock.com/Attachments/20091228-140707_GroupRowsWithMultipleSubtotals.jpg" border="0" /><br><br>If I move the column Sales and put it between 'Product' and 'State' the grouptotal remains in the same column, which is state at that moment.<br><br>How can I be sure that my subtotals remains in the same column as originally at startup?<br><br><br>]]>
   </description>
   <pubDate>Wed, 26 Aug 2015 09:30:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22701&amp;PID=73807&amp;title=moving-columns#73807</guid>
  </item> 
 </channel>
</rss>