<?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: Listbox line item color</title><link>https://www.infopathdev.com:443/forums/thread/26717.aspx</link><pubDate>Mon, 25 Feb 2008 17:46:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26717</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26717.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=26717</wfw:commentRss><description>&lt;p&gt;If you want to display secondary data and allow selection then you may want to consider using a repeating table, which can be formatted easily and then a method for capturing the selection&amp;nbsp;such as a button that then moves the selected current() row values to be used elsewhere in your form.&lt;/p&gt;</description></item><item><title>Listbox line item color</title><link>https://www.infopathdev.com:443/forums/thread/26716.aspx</link><pubDate>Mon, 25 Feb 2008 16:26:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26716</guid><dc:creator>swhitecsr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26716.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=26716</wfw:commentRss><description>&lt;p&gt;Is it possible (easily) to color certain line items in a list box?&lt;/p&gt;
&lt;p&gt;I have seen a few posts/blog items on dynamically adding items to a list box using the preserve code block, one of the examples does coloring as well but I was hoping there was an easier way. The list box is bound to a secondary data source (database) displaying a title column and &amp;quot;saving&amp;quot; an ID column. However a new requirement is to highlight certain items in red. &lt;/p&gt;
&lt;p&gt;Plan B is going to be to use conditional formatting to show/hide an indicator icon/text that shows up outside the listbox but the preferable way would be to change the color (or background) of the list items themselves. I don&amp;#39;t think we want to go down the road of&amp;nbsp;writing code to query the datasource&amp;nbsp;and manually adding each item just to highlight certain ones (not enough bang for the buck). &lt;/p&gt;
&lt;p&gt;Anyone have ideas or have come across this before?&lt;/p&gt;
&lt;p&gt;scott&lt;/p&gt;</description></item></channel></rss>