<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Remove Row From Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/15196.aspx</link><pubDate>Sat, 24 Mar 2007 14:52:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15196</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15196.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15196</wfw:commentRss><description>Hi Simon,&lt;br /&gt;&lt;br /&gt;Thanks for this code sample! It is especially useful since it uses the InfoPath 2007 OM, which not a lot of people have experience with (including me, sadly!)</description></item><item><title>Remove Row From Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/13091.aspx</link><pubDate>Thu, 22 Mar 2007 23:19:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13091</guid><dc:creator>YoungSC</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13091.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13091</wfw:commentRss><description>After being able to add a row, I realised I would need to be able to remove a row.&lt;br /&gt;&lt;br /&gt;Here is some code to remove the last row, you could modify it to remove a selected row.&lt;br /&gt;&lt;br /&gt;Dim parent As XPathNavigator = MainDataSource.CreateNavigator.SelectSingleNode("/my:myFields/my:group3", NamespaceManager)&lt;br /&gt;Dim lastchild As XPathNavigator = parent.SelectSingleNode("child::*[position() = last()]", NamespaceManager)&lt;br /&gt;Dim rownav As XPathNavigator = MainDataSource.CreateNavigator.SelectSingleNode("/my:myFields/my:group3/my:group4", NamespaceManager)&lt;br /&gt;Dim parentchildcount As Integer = parent.SelectChildren(XPathNodeType.Element).Count&lt;br /&gt;If parentchildcount &amp;gt; 1 Then&lt;br /&gt;     rownav.MoveTo(lastchild)&lt;br /&gt;     rownav.DeleteRange(lastchild)&lt;br /&gt;End If</description></item></channel></rss>