<?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 : SOLVED: Delete Rows and Childs</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : SOLVED: Delete Rows and Childs]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 03:35:02 +0000</pubDate>
  <lastBuildDate>Sat, 02 Aug 2008 06:54:14 +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=11560</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[SOLVED: Delete Rows and Childs : Hi AndreiM  Thats very good....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=39344&amp;title=solved-delete-rows-and-childs#39344</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3545">markmark</a><br /><strong>Subject:</strong> 11560<br /><strong>Posted:</strong> 02 August 2008 at 6:54am<br /><br />Hi AndreiM<DIV>&nbsp;</DIV><DIV>Thats very good. Much better looking and works!</DIV><DIV>&nbsp;</DIV><DIV>Thanks very much</DIV><DIV>&nbsp;</DIV><DIV>MArk</DIV>]]>
   </description>
   <pubDate>Sat, 02 Aug 2008 06:54:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=39344&amp;title=solved-delete-rows-and-childs#39344</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Delete Rows and Childs : Hello,I have looked in RemoveRowEx...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=39342&amp;title=solved-delete-rows-and-childs#39342</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3233">AndreiM</a><br /><strong>Subject:</strong> 11560<br /><strong>Posted:</strong> 02 August 2008 at 6:19am<br /><br /><DIV>Hello,<BR>I have looked in RemoveRowEx implementation and find that row is removed from selected rows collection too. <BR>Let me advice&nbsp; other simple way to delete rows:</DIV><DIV>---------------------------------------------------------------------</DIV><DIV>&nbsp; Dim grdReportRow As ReportRow</DIV><DIV>&nbsp;</DIV><DIV>&nbsp; While wndReportControl.SelectedRows.Count<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set grdReportRow = wndReportControl.SelectedRows(0)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Call wndReportControl.RemoveRowEx(grdReportRow)<BR>&nbsp; Wend<BR></DIV>]]>
   </description>
   <pubDate>Sat, 02 Aug 2008 06:19:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=39342&amp;title=solved-delete-rows-and-childs#39342</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Delete Rows and Childs : Thanks you AndreiM           Your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=38943&amp;title=solved-delete-rows-and-childs#38943</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3545">markmark</a><br /><strong>Subject:</strong> 11560<br /><strong>Posted:</strong> 27 July 2008 at 11:33am<br /><br />Thanks you AndreiM <DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Your code works good.</DIV><DIV>&nbsp;</DIV><DIV>Thanks for looking into this</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV><DIV>&nbsp;</DIV><DIV>MArk</DIV>]]>
   </description>
   <pubDate>Sun, 27 Jul 2008 11:33:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=38943&amp;title=solved-delete-rows-and-childs#38943</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Delete Rows and Childs : Hello,  the problem is that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=38941&amp;title=solved-delete-rows-and-childs#38941</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3233">AndreiM</a><br /><strong>Subject:</strong> 11560<br /><strong>Posted:</strong> 27 July 2008 at 11:11am<br /><br /><DIV>Hello,</DIV><DIV>&nbsp;</DIV><DIV>the problem is that SelectedRows collection used row indexes and RemoveRowEx does not update them.</DIV><DIV>&nbsp;</DIV><DIV>To avoid this problem just save selected rows objects in separate collection.<BR>EXAMPLE:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim grdReportRow As ReportRow<BR>&nbsp;&nbsp;&nbsp; Dim arToDel As New Collection<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; For Each grdReportRow In wndReportControl.SelectedRows<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If grdReportRow.GroupRow = False Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arToDel.Add grdReportRow<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; Next</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; For Each grdReportRow In arToDel<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Call wndReportControl.RemoveRowEx(grdReportRow)<BR>&nbsp;&nbsp;&nbsp; Next</DIV><DIV>&nbsp;</DIV><DIV>I will think about fixing RemoveRowEx to update SelectedRows collection</DIV>]]>
   </description>
   <pubDate>Sun, 27 Jul 2008 11:11:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=38941&amp;title=solved-delete-rows-and-childs#38941</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Delete Rows and Childs : Hi  Peters Code is spot on. I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=38902&amp;title=solved-delete-rows-and-childs#38902</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3545">markmark</a><br /><strong>Subject:</strong> 11560<br /><strong>Posted:</strong> 25 July 2008 at 12:29pm<br /><br /><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face=Tahoma size=2>Hi</FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face=Tahoma size=2>Peters Code is spot on.</FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face=Tahoma size=2>I did make a small addition (In Blue)</FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>For i = (wndReportControl.SelectedRows.Count - 1) To 0 Step -1<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><FONT color=#0033ff>If wndReportControl.SelectedRows.Count &gt; 0 Then<o:p></o:p></FONT></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><FONT color=#0033ff><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>lngCurrentCount = wndReportControl.SelectedRows.Count<o:p></o:p></FONT></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Set rptRow = wndReportControl.SelectedRows.Row(i)<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>wndReportControl.RemoveRowEx rptRow<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT color=#0033ff>&nbsp;&nbsp; </FONT></SPAN><FONT color=#0033ff>If lngCurrentCount - 1 &gt; wndReportControl.SelectedRows.Count Then<o:p></o:p></FONT></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><FONT color=#0033ff><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</SPAN>i = i - 1<o:p></o:p></FONT></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><FONT color=#0033ff><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>End If<o:p></o:p></FONT></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>End If<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Next i</FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face=Tahoma size=2>If you have<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>wndReportControl.GroupsOrder.Add Column added,</FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face=Tahoma size=2>so that the report groups by a column, its possible to select the group which adds to the selection count.</FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face=Tahoma size=2>But when that groups items are deleted the group row deletes its self.</FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face=Tahoma size=2>and is also removed from the SelectedRows object.</P><DIV></FONT><FONT size=2><FONT face=Tahoma>So the count has changed, and <SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN-GB; mso-fareast-: EN-US; mso-bidi-: AR-SA">variable&nbsp;<strong>i</strong></SPAN>&nbsp; need updating&nbsp;<o:p></o:p></FONT></FONT></DIV><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face=Tahoma size=2>Hope that makes sense.</FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face=Tahoma size=2>I hope CJ will help, as its not very elegant.</FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face=Tahoma size=2>Thanks to you all</FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN-GB; mso-fareast-: EN-US; mso-bidi-: AR-SA">MArk</SPAN></P>]]>
   </description>
   <pubDate>Fri, 25 Jul 2008 12:29:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=38902&amp;title=solved-delete-rows-and-childs#38902</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Delete Rows and Childs : Hi,  That is correct!!! Support...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=38889&amp;title=solved-delete-rows-and-childs#38889</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 11560<br /><strong>Posted:</strong> 25 July 2008 at 6:36am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>That is correct!!! Support didn't test this properly. If you use Peter's code it will work <img src="https://forum.codejock.com/smileys/smiley4.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Think I have something to do right now <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Fri, 25 Jul 2008 06:36:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=38889&amp;title=solved-delete-rows-and-childs#38889</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Delete Rows and Childs : Hi All  Thanks for all the replies  I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=38887&amp;title=solved-delete-rows-and-childs#38887</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3545">markmark</a><br /><strong>Subject:</strong> 11560<br /><strong>Posted:</strong> 25 July 2008 at 5:50am<br /><br /><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>Hi All<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>Thanks for all the replies<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>I did contact support and this morning I got a reply.<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>They said to use the following code<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>Dim grdReportRow As ReportRow<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>For Each grdReportRow In wndReportControl.SelectedRows<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>If grdReportRow.GroupRow = False Then<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Call wndReportControl.RemoveRowEx(grdReportRow)<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>End If<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>Next<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>However:<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>This does not work if you select a child row.<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>It seems that the index for a child row starts again.<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>If you copy that code in the example I sent, you will see that selecting a child row and then run the delete code causes another row to delete.<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>Or may be I’m missing the point in all this.<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face=Tahoma size=2>I will now try Peters code and see what happens</FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT face=Tahoma size=2>Thanks again</FONT></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Tahoma>&nbsp;<o:p></o:p></FONT></FONT></P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN-GB; mso-fareast-: EN-US; mso-bidi-: AR-SA">MArk</SPAN>]]>
   </description>
   <pubDate>Fri, 25 Jul 2008 05:50:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=38887&amp;title=solved-delete-rows-and-childs#38887</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Delete Rows and Childs : Hi Peter,  If you upload sample,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=38841&amp;title=solved-delete-rows-and-childs#38841</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 11560<br /><strong>Posted:</strong> 24 July 2008 at 9:07am<br /><br />Hi Peter,<DIV>&nbsp;</DIV><DIV>If you upload sample, please add the right code to it <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0">&nbsp;I was testing with the old code from @markmark. To be honest I didn't look at the code as I wrote the previous reply. But it seems to be working as you say <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV>]]>
   </description>
   <pubDate>Thu, 24 Jul 2008 09:07:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=38841&amp;title=solved-delete-rows-and-childs#38841</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Delete Rows and Childs :    Aaron wrote: Doesn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=38838&amp;title=solved-delete-rows-and-childs#38838</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3156">Peter59</a><br /><strong>Subject:</strong> 11560<br /><strong>Posted:</strong> 24 July 2008 at 8:47am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Aaron" alt="Originally posted by Aaron" style="vertical-align: text-bottom;" /> <strong>Aaron wrote:</strong><br /><br /><div>&nbsp;</div><div>Doesn't matter how you do this, &#091;...&#093;</div><div>&nbsp;</div></td></tr></table><br><br>Maybe you are right, but I don't worry about it when there is a workaround. I hope that this forum is read by CJ support and they will investigate the problem. <br><br>I deleted the selected two rows with the modified sample and it works - or am I wrong? <img src="http://forum.codejock.com/smileys/smiley16.gif" border="0" align="absmiddle"> <br><br><br>]]>
   </description>
   <pubDate>Thu, 24 Jul 2008 08:47:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=38838&amp;title=solved-delete-rows-and-childs#38838</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Delete Rows and Childs : Hi Peter,  Doesn&amp;#039;t matter...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=38836&amp;title=solved-delete-rows-and-childs#38836</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 11560<br /><strong>Posted:</strong> 24 July 2008 at 8:35am<br /><br />Hi Peter,<DIV>&nbsp;</DIV><DIV>Doesn't matter how you do this, seems that some references are lost on the way. Look at the image and try to delete the selected records. You will see that only the first selected record will be deleted and strangely enough the record after the second record and it's childs as well. That's why it crashes...</DIV><DIV>&nbsp;</DIV><DIV>I have a simular problem with the UpdateRecord method,&nbsp;this seems almost to have a reference to the next record. &nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20080724_082839_RCBug.JPG" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 24 Jul 2008 08:35:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11560&amp;PID=38836&amp;title=solved-delete-rows-and-childs#38836</guid>
  </item> 
 </channel>
</rss>