<?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>Effective method to delete rows from repeating table. Need help.</title><link>https://www.infopathdev.com:443/forums/thread/31361.aspx</link><pubDate>Tue, 12 Aug 2008 08:05:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31361</guid><dc:creator>nik0.cmc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31361.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=31361</wfw:commentRss><description>&lt;p&gt;Hi. &lt;/p&gt;&lt;p&gt;I need to delete some rows from repeating table. I&amp;#39;m using C#.&lt;/p&gt;&lt;p&gt;I wrote next code, but it works slow. Does anybody know more effective method to do it.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;XPathNavigator root = this.MainDataSource.CreateNavigator();&lt;/p&gt;&lt;p&gt;XPathNavigator tempRow; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;while ((tempRow = root.SelectSingleNode(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;/Schema/View_2/Table/TableWithVariant[Field_1 = &amp;#39;&amp;#39;]&amp;quot;)) != null)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tempRow.DeleteSelf(); &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>