<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: programmatically adding rows to Infopath repeating table - rows have buttons</title><link>https://www.infopathdev.com:443/forums/thread/51591.aspx</link><pubDate>Wed, 10 Feb 2010 01:54:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51591</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51591.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51591</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;What happens if you remove this part?:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;field = doc.CreateElement(&amp;quot;field3&amp;quot;, NamespaceManager.LookupNamespace(&amp;quot;my&amp;quot;));&lt;br /&gt;node = group.AppendChild(field);&lt;br /&gt;node.InnerText = &amp;quot;Cell 3&amp;quot;;&lt;/p&gt;
&lt;/blockquote&gt;
The button is part of the repeating table control.  It&amp;#39;s not something you manually add to each row from the code.</description></item><item><title>programmatically adding rows to Infopath repeating table - rows have buttons</title><link>https://www.infopathdev.com:443/forums/thread/51562.aspx</link><pubDate>Tue, 09 Feb 2010 17:37:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51562</guid><dc:creator>ChuckD</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51562.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51562</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have been using the following to add rows to a repeating table:&lt;/p&gt;&lt;pre&gt;XmlDocument doc = new XmlDocument();
&lt;span id="line-18" class="anchor"&gt;&lt;/span&gt;XmlNode group = doc.CreateElement(&amp;quot;group2&amp;quot;, NamespaceManager.LookupNamespace(&amp;quot;my&amp;quot;));
&lt;span id="line-19" class="anchor"&gt;&lt;/span&gt;
&lt;span id="line-20" class="anchor"&gt;&lt;/span&gt;XmlNode field = doc.CreateElement(&amp;quot;field1&amp;quot;, NamespaceManager.LookupNamespace(&amp;quot;my&amp;quot;));
&lt;span id="line-21" class="anchor"&gt;&lt;/span&gt;XmlNode node = group.AppendChild(field);
&lt;span id="line-22" class="anchor"&gt;&lt;/span&gt;node.InnerText = &amp;quot;Cell 1&amp;quot;;
&lt;span id="line-23" class="anchor"&gt;&lt;/span&gt;
&lt;span id="line-24" class="anchor"&gt;&lt;/span&gt;field = doc.CreateElement(&amp;quot;field2&amp;quot;, NamespaceManager.LookupNamespace(&amp;quot;my&amp;quot;));
&lt;span id="line-25" class="anchor"&gt;&lt;/span&gt;node = group.AppendChild(field);
&lt;span id="line-26" class="anchor"&gt;&lt;/span&gt;node.InnerText = &amp;quot;Cell 2&amp;quot;;
&lt;span id="line-27" class="anchor"&gt;&lt;/span&gt;
&lt;span id="line-28" class="anchor"&gt;&lt;/span&gt;field = doc.CreateElement(&amp;quot;field3&amp;quot;, NamespaceManager.LookupNamespace(&amp;quot;my&amp;quot;));
&lt;span id="line-29" class="anchor"&gt;&lt;/span&gt;node = group.AppendChild(field);
&lt;span id="line-30" class="anchor"&gt;&lt;/span&gt;node.InnerText = &amp;quot;Cell 3&amp;quot;;
&lt;span id="line-31" class="anchor"&gt;&lt;/span&gt;
&lt;span id="line-32" class="anchor"&gt;&lt;/span&gt;doc.AppendChild(group);
&lt;span id="line-33" class="anchor"&gt;&lt;/span&gt;
&lt;span id="line-34" class="anchor"&gt;&lt;/span&gt;MainDataSource.CreateNavigator().SelectSingleNode(
&lt;span id="line-35" class="anchor"&gt;&lt;/span&gt;&amp;quot;/my:myFields/my:group1&amp;quot;,
&lt;span id="line-36" class="anchor"&gt;&lt;/span&gt;NamespaceManager).AppendChild(doc.DocumentElement.CreateNavigator());
&lt;span id="line-37" class="anchor"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="anchor"&gt;However Cell 3 is no longer a text field, but is a button.  Thus, I need to add a row, fill in the values for the first&lt;br /&gt;two columns, and somehow get a button to appear.  I tried cloning an existing &lt;br /&gt;row, which works nicely, but I can&amp;#39;t seem to get ahold of the row and put values in the fields.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="anchor"&gt;Any help would be much appreciated. &lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="anchor"&gt;Thanks in Advance.&lt;/span&gt;&lt;/pre&gt;</description></item></channel></rss>