﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" 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/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Alternating Row Styles at Runtime</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Alternating-Row-Styles-at-Runtime/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Alternating Row Styles at Runtime</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Alternating-Row-Styles-at-Runtime/</link><pubDate>Thu, 30 Aug 2012 01:52:33 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi Shri,&lt;/p&gt;&lt;p&gt;You can add this code on InitializeLayout event:&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;protected void WebGrid1_InitializeLayout(object sender, ISNet.WebUI.WebGrid.LayoutEventArgs e)
{
    WebGrid1.LayoutSettings.HeaderStyle.BackColor = System.Drawing.Color.Lime;
    WebGrid1.LayoutSettings.RowStyle.BackColor = System.Drawing.Color.LightPink;
}&lt;/pre&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bernard&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>Alternating Row Styles at Runtime</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Alternating-Row-Styles-at-Runtime/</link><pubDate>Wed, 29 Aug 2012 10:05:50 GMT</pubDate><dc:creator>Shri</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have webgrid with the Dafaultstylemode as the Silver. How do you I give the alternating row styles on runtime and also the header captions Color other than the DefaultStyle mode&lt;/p&gt;</description></item></channel></rss>