<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>CSS Friendly Control Adapters</title><link>http://forums.asp.net/1018.aspx</link><description>Discuss the CSS Friendly Control Adapters sample project, ask questions, post bugs, etc</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: GridViewAdapter Row.Attributes and Row.Styles</title><link>http://forums.asp.net/thread/1449491.aspx</link><pubDate>Wed, 01 Nov 2006 17:17:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1449491</guid><dc:creator>adk</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1449491.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1018&amp;PostID=1449491</wfw:commentRss><description>&lt;p&gt;Thanks Russ,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Appreciate the information. I will leave the initial post as it is. &amp;nbsp;&lt;/p&gt;&lt;p&gt;Andrej&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: GridViewAdapter Row.Attributes and Row.Styles</title><link>http://forums.asp.net/thread/1449304.aspx</link><pubDate>Wed, 01 Nov 2006 15:02:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1449304</guid><dc:creator>Russ Helfand</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1449304.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1018&amp;PostID=1449304</wfw:commentRss><description>&lt;p&gt;Hi Andre,&lt;/p&gt;&lt;p&gt;Please don&amp;#39;t worry too much about needing to correct your initial posting.&amp;nbsp; Lots of people (including yours truly) do likewise from time to time.&amp;nbsp; I don&amp;#39;t think folks really mind if you add notes to refine earlier posts.&lt;/p&gt;&lt;p&gt;That said, if you want to edit your post you may be able to seek help from this forum&amp;#39;s moderator: Alister Jones (username:SomeNewKid)&lt;a href="mailto:somenewkid@hotmail.com"&gt;&lt;/a&gt;.&amp;nbsp; Or, you can post requests of that sort to the forum dedicated to site feedback, &lt;a href="http://forums.asp.net/188/ShowForum.aspx"&gt;http://forums.asp.net/188/ShowForum.aspx&lt;/a&gt;.&amp;nbsp; Let me reiterate, however, that you really don&amp;#39;t need to try to edit your post (in my opinion) because no one is going to mind your addendum instructions.&lt;/p&gt;&lt;p&gt;Thanks for your contribution.&lt;/p&gt;</description></item><item><title>Re: GridViewAdapter Row.Attributes and Row.Styles</title><link>http://forums.asp.net/thread/1448549.aspx</link><pubDate>Tue, 31 Oct 2006 23:01:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1448549</guid><dc:creator>adk</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1448549.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1018&amp;PostID=1448549</wfw:commentRss><description>&lt;p&gt;Hey guys,&lt;/p&gt;&lt;p&gt;Please ignore the second if block, it is unneccessary an incorrect. &lt;/p&gt;&lt;p&gt;It appears that the style attribute generated from Row.Styles is already in the row.Attributes collection.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I apologize for posting untested code. Lesson learned.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;p.s. Can anyone point me to the forum FAQ? Alternately, can you tell me if it is possible to edit a post?(I&amp;#39;d like to correct the code in the original post)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;Thanks,&lt;/p&gt;&lt;p&gt;Andrej&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>GridViewAdapter Row.Attributes and Row.Styles</title><link>http://forums.asp.net/thread/1448086.aspx</link><pubDate>Tue, 31 Oct 2006 15:45:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1448086</guid><dc:creator>adk</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1448086.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1018&amp;PostID=1448086</wfw:commentRss><description>&lt;p&gt;I noticed that the GridViewAdapter does not render the Row.Attributes and Row.Styles.&lt;/p&gt;&lt;p&gt;Here&amp;nbsp; is the code I used to get it working. Hope someone finds it helpful.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Inside the&amp;nbsp; WriteRows method, add the following code after the&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;foreach&lt;/span&gt; (GridViewRow row &lt;span class="kwd"&gt;in&lt;/span&gt; rows)&lt;/pre&gt;&amp;nbsp; and before the &amp;nbsp;&lt;pre class="coloredcode"&gt;writer.Write(HtmlTextWriter.TagRightChar);&lt;/pre&gt;&amp;nbsp;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt; &lt;span class="kwd"&gt;if&lt;/span&gt; (row.Attributes.Count &amp;gt; 0)&lt;br /&gt; {&lt;br /&gt;     &lt;span class="kwd"&gt;foreach&lt;/span&gt; (&lt;span class="kwd"&gt;string&lt;/span&gt; key &lt;span class="kwd"&gt;in&lt;/span&gt; row.Attributes.Keys)&lt;br /&gt;     {&lt;br /&gt;         writer.WriteAttribute(key, row.Attributes[key]);&lt;br /&gt;     }&lt;br /&gt; }&lt;br /&gt; &lt;span class="kwd"&gt;if&lt;/span&gt; (row.Style.Count &amp;gt; 0)&lt;br /&gt; {&lt;br /&gt;     &lt;span class="kwd"&gt;foreach&lt;/span&gt; (&lt;span class="kwd"&gt;string&lt;/span&gt; key &lt;span class="kwd"&gt;in&lt;/span&gt; row.Style.Keys)&lt;br /&gt;     {&lt;br /&gt;         writer.WriteStyleAttribute(key, row.Style[key]);&lt;br /&gt;     }&lt;br /&gt; }&lt;/pre&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>