<?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 : Removing Row</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Removing Row]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 16 Apr 2026 23:24:22 +0000</pubDate>
  <lastBuildDate>Sat, 03 May 2008 14:22:16 +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=10440</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[Removing Row : Hi,  Glad I could help you,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34611&amp;title=removing-row#34611</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10440<br /><strong>Posted:</strong> 03 May 2008 at 2:22pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Glad I could help you, thats why we are here, right <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Did you check the sample project I posted? I guess you want the same as I showed in the sample. Just showing those records which the user selects.</DIV>]]>
   </description>
   <pubDate>Sat, 03 May 2008 14:22:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34611&amp;title=removing-row#34611</guid>
  </item> 
  <item>
   <title><![CDATA[Removing Row : thank you Aaron for all your help,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34610&amp;title=removing-row#34610</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2368">cmm2006</a><br /><strong>Subject:</strong> 10440<br /><strong>Posted:</strong> 03 May 2008 at 2:09pm<br /><br />thank you Aaron for all your help, make row visible/invisible did the job.<img src="http://forum.codejock.com/smileys/smiley2.gif" border="0">]]>
   </description>
   <pubDate>Sat, 03 May 2008 14:09:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34610&amp;title=removing-row#34610</guid>
  </item> 
  <item>
   <title><![CDATA[Removing Row :   joeliner wrote:  i think...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34605&amp;title=removing-row#34605</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10440<br /><strong>Posted:</strong> 03 May 2008 at 1:07pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by joeliner" alt="Originally posted by joeliner" style="vertical-align: text-bottom;" /> <strong>joeliner wrote:</strong><br /><br /><DIV>&nbsp;</DIV><DIV>i think cmm2006 is referring to filtering the records where in essence the records are hidden. <strong>filtertext would be the way to go then</strong>.<BR><BR>regards,<BR></td></tr></table> </DIV><DIV>&nbsp;</DIV><DIV>Joeliner, FilterText will filter entire ReportControl's records and not just one column. With my snippet you can filter a column you want.</DIV>]]>
   </description>
   <pubDate>Sat, 03 May 2008 13:07:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34605&amp;title=removing-row#34605</guid>
  </item> 
  <item>
   <title><![CDATA[Removing Row :   cmm2006 wrote:No, I am not...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34581&amp;title=removing-row#34581</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10440<br /><strong>Posted:</strong> 02 May 2008 at 4:02pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by cmm2006" alt="Originally posted by cmm2006" style="vertical-align: text-bottom;" /> <strong>cmm2006 wrote:</strong><br /><br />No, I am not looking to sort the report. <DIV>okay how can remove row from reportcontrol?</DIV><DIV>thank you</DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>It's not sorting records in a way you think (look at the quotes, "sort"), It's more filtering the ReportControl's records and show the result to the user. </DIV><DIV>&nbsp;</DIV><DIV><DIV>Do you want to "remove" a row (make invisible)&nbsp;or remove the record? You have to be more clear when asking a question and sometimes it helps when you would upload a screenshot. Now...&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><strong>Make row invisible without removing the actual record:</strong></DIV><DIV>&nbsp;</DIV><DIV><EM>wndReportControl.Rows(wndReportControl.FocusedRow.Index).record.Visible = False&nbsp;</EM></DIV><DIV><EM>wndReportControl.Populate</EM></DIV><DIV>&nbsp;</DIV><DIV>or</DIV><DIV>&nbsp;</DIV><DIV><DIV><EM>wndReportControl.Records(wndReportControl.FocusedRow.Index).Visible = False&nbsp;</EM></DIV><DIV><EM>wndReportControl.Populate</EM></DIV><DIV>&nbsp;</DIV></DIV><DIV><strong>Remove the record from the ReportControl:</strong></DIV><DIV>&nbsp;</DIV><DIV><DIV><EM>wndReportControl.Records.RemoveAt wndReportControl.FocusedRow.Index</EM></DIV></DIV><DIV><EM>wndReportControl.Populate</EM></DIV><DIV>&nbsp;</DIV><DIV>I have used the current selected record in the lines of code (above)</DIV><DIV>&nbsp;</DIV><DIV>If you are going to make the record/row invisible you have to keep track of the rows which are invisible or just loop through the records and make them all visible. I don't have a clue what you are trying to accomplish, it looked like you wanted just those records to show, the user selected but you don't want that. </DIV><DIV>&nbsp;</DIV><DIV>But maybe you can take a closer look at the sample project:</DIV><DIV><a href="http://forum.codejock.com/forum_posts.asp?TID=10180" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=10180</A></DIV></DIV>]]>
   </description>
   <pubDate>Fri, 02 May 2008 16:02:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34581&amp;title=removing-row#34581</guid>
  </item> 
  <item>
   <title><![CDATA[Removing Row :    cmm2006 wrote:No, I am not...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34572&amp;title=removing-row#34572</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2090">joeliner</a><br /><strong>Subject:</strong> 10440<br /><strong>Posted:</strong> 02 May 2008 at 1:07pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by cmm2006" alt="Originally posted by cmm2006" style="vertical-align: text-bottom;" /> <strong>cmm2006 wrote:</strong><br /><br />No, I am not looking to sort the report.<div>okay how can remove row from reportcontrol?</div></td></tr></table><br><br>i think cmm2006 is referring to filtering the records where in essence the records are hidden. filtertext would be the way to go then.<br><br>http://forum.codejock.com/forum_posts.asp?TID=10180<br><br>BTW, thanks Aaron for posting ths snippet. was really helpful. :) Am trying to work on the RC subtotal. http://forum.codejock.com/forum_posts.asp?TID=9801. i dont mind sharing it if am successful.<br><br>regards,<br>]]>
   </description>
   <pubDate>Fri, 02 May 2008 13:07:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34572&amp;title=removing-row#34572</guid>
  </item> 
  <item>
   <title><![CDATA[Removing Row : No, I am not looking to sort the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34564&amp;title=removing-row#34564</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2368">cmm2006</a><br /><strong>Subject:</strong> 10440<br /><strong>Posted:</strong> 02 May 2008 at 11:44am<br /><br />No, I am not looking to sort the report.<DIV>okay how can remove row from reportcontrol?</DIV><DIV>thank you</DIV>]]>
   </description>
   <pubDate>Fri, 02 May 2008 11:44:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34564&amp;title=removing-row#34564</guid>
  </item> 
  <item>
   <title><![CDATA[Removing Row : Hi,   So you really want to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34560&amp;title=removing-row#34560</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10440<br /><strong>Posted:</strong> 02 May 2008 at 8:49am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>So you really want to "sort" the items which match the selected combo text? If you want to sort the records on selected combo text you can traverse the records and set the found recorditem (row)&nbsp;to visible</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Private Function SortSelectedComboText()<BR>&nbsp;&nbsp;&nbsp; Dim record As ReportRecord<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; For Each record In wndReportControl.Records<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; record.Visible = True '<EM>make previous sort undone when&nbsp;row was set to&nbsp; invisible</EM><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If <strong>Not</strong> UCase(record(<strong>the index of the column to search comes here</strong>).Value) Like "*" &amp; UCase(<strong>Combo.Text</strong>) &amp; "*" Then <EM>'compare value the RecordItem of record with combo selected text<BR></EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; record.Visible = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; Next record<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; wndReportControl.Populate <EM>'show the found records<BR></EM>&nbsp;&nbsp;&nbsp; </DIV><DIV>End Function</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Note: The * in the line <EM>"*" &amp; UCase(Combo.Text) &amp; "*"</EM> will be used for any character before / after the selected combo text. If you want to search exact, just use <EM>Combo.Text</EM></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;</DIV><DIV>Hope this will help.</DIV>]]>
   </description>
   <pubDate>Fri, 02 May 2008 08:49:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34560&amp;title=removing-row#34560</guid>
  </item> 
  <item>
   <title><![CDATA[Removing Row : ok, I have a report control with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34554&amp;title=removing-row#34554</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2368">cmm2006</a><br /><strong>Subject:</strong> 10440<br /><strong>Posted:</strong> 02 May 2008 at 7:28am<br /><br />ok, I have a report control with 6 columns, and records are loaded to the reportcontrol. now I have a combobox where the user can select what they to show only in reportcontrol.<DIV>for example the 5 column of the report control containt the state of residence, and the combobox contain all the 50 states, now if the user select 'FL' from the combobox, all I want to be displayed in the reportcontrol is the customer who reside 'FL' state.</DIV><DIV>CJ12</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 02 May 2008 07:28:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34554&amp;title=removing-row#34554</guid>
  </item> 
  <item>
   <title><![CDATA[Removing Row : Hi,  Your question isn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34551&amp;title=removing-row#34551</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10440<br /><strong>Posted:</strong> 02 May 2008 at 5:19am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Your question isn't very clear to me. You want to remove a record from the Reportcontrol, that part I did understand.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>*&nbsp;&nbsp;&nbsp; Is it the focused/selected record or a reference/index&nbsp;of the record selected with the combobox?&nbsp;</DIV><DIV>*&nbsp;&nbsp;&nbsp; You want all the records that their value are not = to item(5) of the report control??? This part I really don't understand.</DIV><DIV>*&nbsp;&nbsp;&nbsp; And what version do you use?</DIV><DIV>&nbsp;</DIV><DIV>Explain what you really want, with text, screenshot or whatever <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0">&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 02 May 2008 05:19:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34551&amp;title=removing-row#34551</guid>
  </item> 
  <item>
   <title><![CDATA[Removing Row : Ok I know it&amp;#039;s easy to do,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34539&amp;title=removing-row#34539</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2368">cmm2006</a><br /><strong>Subject:</strong> 10440<br /><strong>Posted:</strong> 01 May 2008 at 6:02pm<br /><br />Ok I know it's easy to do, but for some reason, I was unable to get it done. the report control contain all the records of a table, and I need to know how to remove some rows from the report base on the selection of the user (selection is made from a combobox).<DIV>I want all the records that their value are not = to item(5) of the report control.</DIV><DIV>please help <img src="https://forum.codejock.com/smileys/smiley9.gif" border="0"><img src="https://forum.codejock.com/smileys/smiley9.gif" border="0"><img src="https://forum.codejock.com/smileys/smiley9.gif" border="0"><img src="https://forum.codejock.com/smileys/smiley9.gif" border="0"></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 01 May 2008 18:02:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10440&amp;PID=34539&amp;title=removing-row#34539</guid>
  </item> 
 </channel>
</rss>