<?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 : ReportC&#111;ntrol: Stop last being removed?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Suite Pro : ReportC&#111;ntrol: Stop last being removed?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 27 May 2026 21:04:26 +0000</pubDate>
  <lastBuildDate>Tue, 28 Jun 2005 11:09:02 +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=2446</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[ReportC&#111;ntrol: Stop last being removed? : Thanks SuperMario. I&amp;#039;ve...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2446&amp;PID=7311&amp;title=reportcontrol-stop-last-being-removed#7311</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=280">ianp</a><br /><strong>Subject:</strong> 2446<br /><strong>Posted:</strong> 28 June 2005 at 11:09am<br /><br /><P>Thanks SuperMario.</P><P>I've already&nbsp;implemented the following code based on similar lines:</P><P><table width="99%"><tr><td><pre class="BBcode">Private Sub xrcParent_ColumnOrderChanged()<BR>Dim xrcCol As XtremeReportControl.ReportColumn<BR>Dim iCountVisible As Long<BR>On Error Resume Next</P><P>&nbsp; <FONT color=#009900>' Loop through column collection<BR></FONT>&nbsp; For Each xrcCol In xrcParent.Columns<BR>&nbsp;&nbsp;&nbsp; <FONT color=#009900>' Count visible cols</FONT><BR>&nbsp;&nbsp;&nbsp; If xrcCol.Visible Then iCountVisible = iCountVisible + 1<BR>&nbsp;&nbsp;&nbsp; <FONT color=#009900>' Exit Loop if more than one visible column</FONT><BR>&nbsp;&nbsp;&nbsp; If iCountVisible &gt; 1 Then Exit For<BR>&nbsp; Next<BR>&nbsp;<FONT color=#009900> ' Set AllowColumnRemove based on visible columns<BR></FONT>&nbsp; xrcParent.AllowColumnRemove = (iCountVisible &gt; 1)<BR>&nbsp; </P><P>Exit_xrcParent_ColumnOrderChanged:<BR>&nbsp; Set xrcCol = Nothing<BR>&nbsp; On Error GoTo 0<BR>&nbsp; Exit Sub<BR>End Sub</pre></td></tr></table></P>]]>
   </description>
   <pubDate>Tue, 28 Jun 2005 11:09:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2446&amp;PID=7311&amp;title=reportcontrol-stop-last-being-removed#7311</guid>
  </item> 
  <item>
   <title><![CDATA[ReportC&#111;ntrol: Stop last being removed? : All I can suggest is to keep a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2446&amp;PID=7308&amp;title=reportcontrol-stop-last-being-removed#7308</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 2446<br /><strong>Posted:</strong> 28 June 2005 at 10:37am<br /><br />All I can suggest is to keep a global varable to keep track of how manyrows are visible to start, then increment\decrement as columns areadded\removed, then do something like this:<br><br>Private Sub wndReportControl_MouseDown(Button As Integer, Shift As Integer, X As Long, Y As Long)<br>&nbsp;&nbsp;&nbsp; Dim hitColumn As ReportColumn<br><br>&nbsp;&nbsp;&nbsp; Set hitColumn = wndReportControl.HitTest(X, Y).Column<br>&nbsp;&nbsp;&nbsp; If Not hitColumn Is Nothing Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If ColumnCount &lt;= 1 Then<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp; hitColumn.AllowRemove = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; <br>End Sub<br>]]>
   </description>
   <pubDate>Tue, 28 Jun 2005 10:37:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2446&amp;PID=7308&amp;title=reportcontrol-stop-last-being-removed#7308</guid>
  </item> 
  <item>
   <title><![CDATA[ReportC&#111;ntrol: Stop last being removed? : Inmy report control, all columns...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2446&amp;PID=7259&amp;title=reportcontrol-stop-last-being-removed#7259</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=280">ianp</a><br /><strong>Subject:</strong> 2446<br /><strong>Posted:</strong> 24 June 2005 at 3:58am<br /><br /><P>In&nbsp;my report control, all columns have AllowRemove = true. </P><P>I'd like to prevent my users from removing the last column, regardless&nbsp;of the order in which they&nbsp;remove the columns. </P><P>Is this currently possible?</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 24 Jun 2005 03:58:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2446&amp;PID=7259&amp;title=reportcontrol-stop-last-being-removed#7259</guid>
  </item> 
 </channel>
</rss>