<?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 : Report c&#111;ntrol bug ?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Report c&#111;ntrol bug ?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 17 Apr 2026 10:33:05 +0000</pubDate>
  <lastBuildDate>Fri, 18 Mar 2005 10:12:08 +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=1985</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[Report c&#111;ntrol bug ? : Arnie,  You should only locate...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1985&amp;PID=5811&amp;title=report-control-bug#5811</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 1985<br /><strong>Posted:</strong> 18 March 2005 at 10:12am<br /><br />Arnie,<br /><br />You should only locate the column and call pColumn-&gt;SetVisible(FALSE) in order to hide it. <br /><br />Removing a column from the collection automatically means corresponding changes in the Report Record structure.<br /><br />--<br />Regards,<br />Sergei]]>
   </description>
   <pubDate>Fri, 18 Mar 2005 10:12:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1985&amp;PID=5811&amp;title=report-control-bug#5811</guid>
  </item> 
  <item>
   <title><![CDATA[Report c&#111;ntrol bug ? : When i remove a column, i do:CXTPReportColumns*...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1985&amp;PID=5808&amp;title=report-control-bug#5808</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1023">Arnie</a><br /><strong>Subject:</strong> 1985<br /><strong>Posted:</strong> 18 March 2005 at 8:02am<br /><br /><P>When i remove a column, i do:<BR><BR><FONT size=2>CXTPReportColumns* pColumns = m_cGrid.GetColumns();<BR>...Code to locate the correct column<BR><FONT size=2>pColumns-&gt;Remove(pColumn);</FONT></FONT></P><P>In <FONT size=2>CXTPReportColumns::Remove, the column is just removed from the array, the other columns indexes are not adjusted, so after remove, I can see in the debugger Watch window that <BR>pColumns-&gt;m_arrColumns.m_pData&#091;0&#093;.m_nItemIndex == 0<BR>pColumns-&gt;m_arrColumns.m_pData&#091;1&#093;.m_nItemIndex == 1<BR>pColumns-&gt;m_arrColumns.m_pData&#091;2&#093;.m_nItemIndex == 3</FONT><FONT size=2></P></FONT>]]>
   </description>
   <pubDate>Fri, 18 Mar 2005 08:02:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1985&amp;PID=5808&amp;title=report-control-bug#5808</guid>
  </item> 
  <item>
   <title><![CDATA[Report c&#111;ntrol bug ? : Seems you have bug in your code....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1985&amp;PID=5803&amp;title=report-control-bug#5803</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1985<br /><strong>Posted:</strong> 18 March 2005 at 7:21am<br /><br /><P><FONT size=1>Seems you have bug in your code. There can't be situation with 0,1,3 indexes.</FONT></P><P><FONT size=1>If&nbsp; user remove column, m_bVisible of&nbsp;<FONT face=Arial> CXTPReportColumn must be set as FALSE. it doen't remove from array of columns.</FONT></FONT></P><P><FONT face=Arial size=1>Please attach what additional code you added for Remove operation.</FONT></P>]]>
   </description>
   <pubDate>Fri, 18 Mar 2005 07:21:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1985&amp;PID=5803&amp;title=report-control-bug#5803</guid>
  </item> 
  <item>
   <title><![CDATA[Report c&#111;ntrol bug ? : Hi, In my control the users can...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1985&amp;PID=5798&amp;title=report-control-bug#5798</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1023">Arnie</a><br /><strong>Subject:</strong> 1985<br /><strong>Posted:</strong> 18 March 2005 at 5:55am<br /><br /><P><FONT face="Arial, Helvetica, sans-serif" size=2>Hi,</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=2>In my control the users can rightclick the column header and select remove column.<BR>Lets say there were three columns with nItemIndex 0,1,2<BR>The user removes the rightmost column.<BR>After the column has been removed, the indexes are 0,1.</FONT></P><P><FONT size=2><FONT face="Arial, Helvetica, sans-serif">Then the user can add a new column.<BR>Now the indexes are 0,1,3<BR><BR>When the rows are drawn in CXTPReportRow::Draw, the item is located:<BR><FONT size=2>CXTPReportRecordItem* pItem = m_pRecord-&gt;GetItem(pColumn);</FONT></FONT></FONT></P><P><FONT size=2><FONT face="Arial, Helvetica, sans-serif"><FONT size=2>Inside GetItem:<BR><FONT size=2><BR>CXTPReportRecordItem* CXTPReportRecord::GetItem(CXTPReportColumn* pColumn)<BR>{<BR></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (</FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2> == NULL)<BR></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> NULL;<BR></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nItemIndex = pColumn-&gt;GetItemIndex();<BR></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (nItemIndex &gt;= 0 &amp;&amp; nItemIndex &lt; GetItemCount())<BR>{<BR></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> m_arrItems.GetAt(nItemIndex);<BR>}<BR></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> NULL;<BR>}</FONT></P><P><FONT size=2>The problem is that for the last column with nItemindex 3, the item is not found in m_arrItems since it contains items in indexes 0,1,2.&nbsp; The result is that this column only has blank items.</FONT></P><P><FONT size=2>Any workaround/fix for this ?</P></FONT></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Fri, 18 Mar 2005 05:55:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1985&amp;PID=5798&amp;title=report-control-bug#5798</guid>
  </item> 
 </channel>
</rss>