<?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 : Delete Selected</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Delete Selected]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 03:49:33 +0000</pubDate>
  <lastBuildDate>Tue, 15 Mar 2016 13:16:59 +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=22338</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[Delete Selected : Hi Eam74,How did you make a &amp;#034;Delete...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22338&amp;PID=74590&amp;title=delete-selected#74590</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 22338<br /><strong>Posted:</strong> 15 March 2016 at 1:16pm<br /><br />Hi Eam74,<br><br>How did you make a "Delete Column" method? <br><br>I tried doing this some time ago and had trouble with the following:<br><br>1. Column delete. "Remove Column" doesn't seem to perform a delete.&nbsp; Somehow, the column is retained. I have no idea why that is.<br><br>wndReport.GetColumns()-&gt;Remove(pColumn);<br><br>2. Column indexing. Removing a column doesn't delete existing Record Items. When I made a "Delete Item" method to accommodate this the column indexing remains and record items won't be in the right column.<br><br>3. Item delete. There doesn't seem to be a method to delete a Record item except for a method to delete all Record items in the CJ library. The following appears to work, but the column indexing is off.<br><br>// my attempt at Item delete<br><br>&nbsp;&nbsp;&nbsp; void DeleteItem(CXTPReportRecordItem* pItem)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int nIndex = IndexOf(pItem);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (nIndex != -1)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrItems.RemoveAt(nIndex);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItem-&gt;InternalRelease();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>Could you give me an idea how you handle these things or a hint at where I've gone wrong? It would be appreciated.<br><br>Thanks!<br>]]>
   </description>
   <pubDate>Tue, 15 Mar 2016 13:16:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22338&amp;PID=74590&amp;title=delete-selected#74590</guid>
  </item> 
  <item>
   <title><![CDATA[Delete Selected : Ok, I can get it to work with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22338&amp;PID=72560&amp;title=delete-selected#72560</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8725">eam74</a><br /><strong>Subject:</strong> 22338<br /><strong>Posted:</strong> 25 June 2014 at 4:06pm<br /><br />Ok, I can get it to work with a couple changes -<br><br>1. Reset the column focus after calling Populate(), as such: reportControl.SetFocusedColumn(reportControl.GetColumns()-&gt;GetAt(0));<br><br>2. I am using a custom paint manager which paints the current column differently, so reset that variable as well: paintMgr-&gt;m_curColumn = 0;<br><br>Hopefully someone else finds this useful!<br>]]>
   </description>
   <pubDate>Wed, 25 Jun 2014 16:06:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22338&amp;PID=72560&amp;title=delete-selected#72560</guid>
  </item> 
  <item>
   <title><![CDATA[Delete Selected : I am trying to implement a &amp;#034;delete...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22338&amp;PID=72559&amp;title=delete-selected#72559</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8725">eam74</a><br /><strong>Subject:</strong> 22338<br /><strong>Posted:</strong> 25 June 2014 at 3:31pm<br /><br />I am trying to implement a "delete column" function for my report control.&nbsp; The function works perfectly for all cases EXCEPT when the user has selected the last column and is trying to delete it, then it will crash.&nbsp; A selected column in the middle is fine, and deleting the last column when it is not selected is fine.&nbsp; After testing, I believe the reason for the crash is because something is using the selected column / index which no longer exists, but I am unable to find where this is happening.&nbsp; Any pointers would be greatly appreciated!<br><br>TIA<br>]]>
   </description>
   <pubDate>Wed, 25 Jun 2014 15:31:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22338&amp;PID=72559&amp;title=delete-selected#72559</guid>
  </item> 
 </channel>
</rss>