<?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: Repeating table with alternate row color</title><link>https://www.infopathdev.com:443/forums/thread/70769.aspx</link><pubDate>Fri, 30 Sep 2011 18:51:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70769</guid><dc:creator>Lockdown</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70769.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70769</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Patrick Halstead:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Beautiful!&lt;/p&gt;
&lt;p&gt;Such a coincidence too. I created the same sample last week. Too bad the cells can&amp;#39;t have a background color when they&amp;#39;re in a table. :) &lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;They can! Just use a dummy section inside the cell of a table. Set all padding to zero for that cell as well as the margins to zero in the&amp;nbsp;section. You also need to remove the border on the section even though you cannot tell it is there unless you have a different color background.. &lt;/p&gt;
&lt;p&gt;It seems to be defaulted to a white border,&amp;nbsp;so make sure you click &amp;quot;none&amp;quot; and it will shift your section to fit perfectly inside the cell. &lt;/p&gt;
&lt;p&gt;You can then conditionally format that section and make all the cells of a table different colors!&lt;/p&gt;</description></item><item><title>Re: Repeating table with alternate row color</title><link>https://www.infopathdev.com:443/forums/thread/70487.aspx</link><pubDate>Wed, 21 Sep 2011 15:55:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70487</guid><dc:creator>LailaH</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70487.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70487</wfw:commentRss><description>&lt;p&gt;Thank you :)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have discovered another pickle with this, after testing step by step why it would not take on my existing tables (the sample above I made in a different project just quickly).&lt;/p&gt;
&lt;p&gt;My project is quite large with 19 views (for nav purposes), and several tables in each. And quite a lot of complexity in each view, set on tables. Which I would not like to re-do..&lt;/p&gt;
&lt;p&gt;Pickle:&lt;br /&gt;- The format rule background-color is&amp;nbsp;prioritized under property settings on rows, such as&amp;nbsp;Shading (my testing is clear here)&lt;br /&gt;- So the row needs to have init state properties, i.e. no color set + no &amp;quot;no fill&amp;quot; set, as repeating tables are initially when put in&lt;br /&gt;- &lt;em&gt;how do I set this init state&lt;/em&gt;, when I have already set background color on rows on my tables?? Word has a &amp;quot;clear formatting&amp;quot; that would be super-handy here..&lt;/p&gt;
&lt;p&gt;On TableTools&amp;gt;Layout&amp;gt;Borders there is a tab called Shading. And a radio button called &amp;quot;No color&amp;quot;. Got my hopes up, but did not come through. So what now?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Repeating table with alternate row color</title><link>https://www.infopathdev.com:443/forums/thread/70467.aspx</link><pubDate>Wed, 21 Sep 2011 07:06:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70467</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70467.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70467</wfw:commentRss><description>&lt;p&gt;Beautiful!&lt;/p&gt;&lt;p&gt;Such a coincidence too. I created the same sample last week. Too bad the cells can&amp;#39;t have a background color when they&amp;#39;re in a table. :) &lt;/p&gt;&lt;p&gt;Cheers,&lt;/p&gt;</description></item><item><title>Re: Repeating table with alternate row color</title><link>https://www.infopathdev.com:443/forums/thread/70443.aspx</link><pubDate>Tue, 20 Sep 2011 16:49:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70443</guid><dc:creator>LailaH</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70443.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70443</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I figured it out on my own! Wow, these are the things that will make it much better in my forms. I thought it was odd it was not part of the Design-tab to set it up actually.&lt;/p&gt;
&lt;p&gt;I did not attach XSN as I am not sure what it is. File format probably, so you get the whole project. But I attached a picture that explaines where I went wrong, and how it is supposed to be.&lt;/p&gt;
&lt;p&gt;What I left out was to attach the condition to the table properly, it was just dangling in the air.&lt;/p&gt;
&lt;p&gt;Thanks for the code snippet :D&lt;/p&gt;
&lt;p&gt;&amp;nbsp;------------------------------------------&lt;/p&gt;
&lt;p&gt;Rats, I cannot add the image.&lt;/p&gt;
&lt;p&gt;Short recipe on how to do it right, from someone who just learned it:&lt;/p&gt;
&lt;p&gt;Set up 2 formatting rules, EvenRows and OddRows, on the repeating table (MyTable, often called groupX auto. The icon is a open folder with blue ball on it)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;EvenRows&lt;br /&gt;&lt;/strong&gt;Condition: MyTable=position() mod 2 =1&lt;br /&gt;Rule type: Formatting&lt;br /&gt;Formatting (put on a background color)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;OddRows&lt;br /&gt;&lt;/strong&gt;Condition: MyTable=position() mod 2 = 0&lt;br /&gt;Rule type: Formatting&lt;br /&gt;Formatting (put on a different background color)&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;What I did wrong is that I set the condition to be&lt;br /&gt;Condition: position() mod 2 =1&lt;br /&gt;This is not enough.&lt;/p&gt;
&lt;p&gt;When setting up the condition, choose &amp;quot;Select a field or group...&amp;quot; not &amp;quot;The expression&amp;quot;.&amp;nbsp;&lt;br /&gt;Then select &amp;quot;is equal to&amp;quot;.&amp;nbsp;Next combo, select&amp;nbsp;&amp;quot;Use a formula&amp;quot;, then you get to validate the snippet in the formula builder. In the builder, you paste in the code snippet &amp;quot;position() mod 2 = 0&amp;quot; - part.&lt;br /&gt;This is where I took a wrong turn. Hope this helps for others.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Repeating table with alternate row color</title><link>https://www.infopathdev.com:443/forums/thread/70442.aspx</link><pubDate>Tue, 20 Sep 2011 16:09:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70442</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70442.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70442</wfw:commentRss><description>&lt;p&gt;Could you attach your XSN to this thread?&amp;nbsp; Or if you don&amp;#39;t want to publically share your form, try this in a brand new XSN and attach that?&lt;/p&gt;</description></item><item><title>Re: Repeating table with alternate row color</title><link>https://www.infopathdev.com:443/forums/thread/70441.aspx</link><pubDate>Tue, 20 Sep 2011 15:58:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70441</guid><dc:creator>LailaH</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70441.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70441</wfw:commentRss><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;This sound very promising, and I would love to make alternate row colors work on my tables, as some of them are painfully long.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I selected the repeating table, created two formatting rules on it, where each of them had one of the conditions you wrote. I just pasted it into the condition-builder, not using a function builder, it was not available there.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So the condition builder said:&lt;br /&gt;----------------------------------------------------&lt;/p&gt;
&lt;p&gt;Run the rule when this condition is true:&lt;/p&gt;
&lt;p&gt;The expression&amp;nbsp;&amp;nbsp; position() mod 2 = 1&lt;/p&gt;
&lt;p&gt;------------------------------------------------------&lt;/p&gt;
&lt;p&gt;Then i put background color in the Rules panel, Formatting section.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any pointers to what I am doing wrong? I am using Infopath 2010.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;</description></item><item><title>Re: Repeating table with alternate row color</title><link>https://www.infopathdev.com:443/forums/thread/60750.aspx</link><pubDate>Wed, 27 Oct 2010 15:43:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60750</guid><dc:creator>jakirtech@hotmail.com</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60750.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=60750</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am trying to change the alternat color of rows of infopath repeating table. &amp;nbsp;I tried this&amp;nbsp;above thing,&amp;nbsp;no&amp;nbsp;use for me.I think the way i did was wrong.&lt;/p&gt;
&lt;p&gt;can you please&amp;nbsp;explain it little clear&lt;/p&gt;</description></item><item><title>Re: Repeating table with alternate row color</title><link>https://www.infopathdev.com:443/forums/thread/41171.aspx</link><pubDate>Thu, 30 Apr 2009 16:56:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41171</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41171.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=41171</wfw:commentRss><description>&lt;p&gt;There is no way to set row colors using just code and anything&amp;nbsp;you could do to color alternating rows with code&amp;nbsp;would be more complicated than not using code.&lt;/p&gt;
&lt;p&gt;I would recommend using conditional formatting with two conditions:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;position() mod 2 = 1&amp;nbsp; - color for odd rows&lt;/p&gt;
&lt;p&gt;position() mod 2 = 0&amp;nbsp; - color for even rows&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;You&amp;#39;ll also need to specify the backround color on textboxes, etc, to &amp;quot;No color&amp;quot; in order to make them transparent.&lt;/p&gt;</description></item><item><title>Re: Repeating table with alternate row color</title><link>https://www.infopathdev.com:443/forums/thread/39444.aspx</link><pubDate>Thu, 12 Mar 2009 10:25:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39444</guid><dc:creator>muralidharan.d</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39444.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39444</wfw:commentRss><description>&lt;p&gt;Hi Anuma,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.But i want to set the row colour programmatically not&amp;nbsp;from in the design mode?&lt;/p&gt;
&lt;p&gt;How&amp;nbsp;to do it ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Repeating table with alternate row color</title><link>https://www.infopathdev.com:443/forums/thread/39435.aspx</link><pubDate>Thu, 12 Mar 2009 05:30:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39435</guid><dc:creator>Anuma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39435.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39435</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you verify below links.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.ascentium.com/blog/g/Post213.aspx"&gt;http://www.ascentium.com/blog/g/Post213.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.infopathdev.com/forums/t/7291.aspx"&gt;http://www.infopathdev.com/forums/t/7291.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Repeating table with alternate row color</title><link>https://www.infopathdev.com:443/forums/thread/39434.aspx</link><pubDate>Thu, 12 Mar 2009 03:36:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39434</guid><dc:creator>muralidharan.d</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39434.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39434</wfw:commentRss><description>&lt;p&gt;Hi all, &lt;/p&gt;
&lt;p&gt;I am new Infopath. I am creating a repeating table programatically.Is it possible to set the alternate row color for the repeating table?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>