<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Add Shaded Rows to ListView Details View</title>
	<atom:link href="http://www.csharp411.com/add-shaded-rows-to-listview-details-view/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csharp411.com/add-shaded-rows-to-listview-details-view/</link>
	<description>C# Information, Code, Tips and News</description>
	<lastBuildDate>Sat, 24 Jul 2010 01:26:51 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Add Shaded Rows to ListView Details View &#124; small DiGiTaL world</title>
		<link>http://www.csharp411.com/add-shaded-rows-to-listview-details-view/comment-page-1/#comment-5309</link>
		<dc:creator>Add Shaded Rows to ListView Details View &#124; small DiGiTaL world</dc:creator>
		<pubDate>Fri, 23 Oct 2009 04:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/add-shaded-rows-to-listview-details-view/#comment-5309</guid>
		<description>[...] C Sharp 411   Share and [...]</description>
		<content:encoded><![CDATA[<p>[...] C Sharp 411   Share and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://www.csharp411.com/add-shaded-rows-to-listview-details-view/comment-page-1/#comment-5276</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Wed, 09 Sep 2009 13:45:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/add-shaded-rows-to-listview-details-view/#comment-5276</guid>
		<description>I already have tested a sortable version of this ListView and it works great.</description>
		<content:encoded><![CDATA[<p>I already have tested a sortable version of this ListView and it works great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trav</title>
		<link>http://www.csharp411.com/add-shaded-rows-to-listview-details-view/comment-page-1/#comment-5275</link>
		<dc:creator>Trav</dc:creator>
		<pubDate>Wed, 09 Sep 2009 04:19:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/add-shaded-rows-to-listview-details-view/#comment-5275</guid>
		<description>Won&#039;t this solution shade incorrectly if you sort by a listview column?</description>
		<content:encoded><![CDATA[<p>Won't this solution shade incorrectly if you sort by a listview column?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://www.csharp411.com/add-shaded-rows-to-listview-details-view/comment-page-1/#comment-5207</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Tue, 07 Jul 2009 18:52:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/add-shaded-rows-to-listview-details-view/#comment-5207</guid>
		<description>Is there any way to do this in XAML?  It would be much more efficient in XAML since whenever my GridView gets updated the shading can occur automatically.</description>
		<content:encoded><![CDATA[<p>Is there any way to do this in XAML?  It would be much more efficient in XAML since whenever my GridView gets updated the shading can occur automatically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: timm</title>
		<link>http://www.csharp411.com/add-shaded-rows-to-listview-details-view/comment-page-1/#comment-4497</link>
		<dc:creator>timm</dc:creator>
		<pubDate>Thu, 26 Mar 2009 13:08:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/add-shaded-rows-to-listview-details-view/#comment-4497</guid>
		<description>I just tried it again and it works.  Here is some simpler code to add shaded rows to a ListView that&#039;s already populated with items:

ListView listView = this.listView1;
int i = 0;
Color shaded = Color.FromArgb( 240, 240, 240 );

foreach (ListViewItem item in listView.Items)
{
	if (i++ % 2 == 1)
	{
		item.BackColor = shaded;
		item.UseItemStyleForSubItems = true;
	}
}</description>
		<content:encoded><![CDATA[<p>I just tried it again and it works.  Here is some simpler code to add shaded rows to a ListView that's already populated with items:</p>
<p>ListView listView = this.listView1;<br />
int i = 0;<br />
Color shaded = Color.FromArgb( 240, 240, 240 );</p>
<p>foreach (ListViewItem item in listView.Items)<br />
{<br />
	if (i++ % 2 == 1)<br />
	{<br />
		item.BackColor = shaded;<br />
		item.UseItemStyleForSubItems = true;<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cu Teo</title>
		<link>http://www.csharp411.com/add-shaded-rows-to-listview-details-view/comment-page-1/#comment-4494</link>
		<dc:creator>Cu Teo</dc:creator>
		<pubDate>Thu, 26 Mar 2009 04:39:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/add-shaded-rows-to-listview-details-view/#comment-4494</guid>
		<description>I have tried this code but it does not change color at all. Do you know the reason why? Thanks.</description>
		<content:encoded><![CDATA[<p>I have tried this code but it does not change color at all. Do you know the reason why? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle</title>
		<link>http://www.csharp411.com/add-shaded-rows-to-listview-details-view/comment-page-1/#comment-3662</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Thu, 06 Nov 2008 03:41:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/add-shaded-rows-to-listview-details-view/#comment-3662</guid>
		<description>Could someone help me with this code i cant seem to grasp it.</description>
		<content:encoded><![CDATA[<p>Could someone help me with this code i cant seem to grasp it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Akram</title>
		<link>http://www.csharp411.com/add-shaded-rows-to-listview-details-view/comment-page-1/#comment-2634</link>
		<dc:creator>Imran Akram</dc:creator>
		<pubDate>Fri, 08 Aug 2008 15:44:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/add-shaded-rows-to-listview-details-view/#comment-2634</guid>
		<description>very nice!</description>
		<content:encoded><![CDATA[<p>very nice!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
