﻿<?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 - change grid row style on click</title><link>http://www.intersoftsolutions.com/Community/WebGrid/change-grid-row-style-on-click/</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>change grid row style on click</title><link>http://www.intersoftsolutions.com/Community/WebGrid/change-grid-row-style-on-click/</link><pubDate>Mon, 21 Mar 2011 16:57:29 GMT</pubDate><dc:creator>MarTin</dc:creator><category>webgrid style</category><description>&lt;p&gt;Hello Tanmay,&lt;/p&gt;
&lt;p&gt;You can use OnRowSelect Client-side event in order to change row style when you perform row select.&lt;/p&gt;
&lt;p&gt;Here is the snippet code to give color when you select a row:&lt;/p&gt;&lt;pre&gt;function WebGrid1_OnRowSelect(controlId, tblName, rowIndex, rowEl)
{
   var WebGrid1 = ISGetObject(controlId);
   for (var i = 0; i &amp;lt; WebGrid1.TotalRows; i&amp;#43;&amp;#43;)
   {
      var row = WebGrid1.RootTable.GetRow(i);
      var rowElement = row.GetElement();
      rowElement.style.color = "black";
   }

   rowEl.style.color = "blue";

   return true;
}&lt;/pre&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>change grid row style on click</title><link>http://www.intersoftsolutions.com/Community/WebGrid/change-grid-row-style-on-click/</link><pubDate>Mon, 21 Mar 2011 02:59:55 GMT</pubDate><dc:creator>tanmay.patel@otis.com</dc:creator><category>webgrid style</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt; In my project webgrid is implemented long back. OnClick on GridRow the grid row changes it's color. I want to  change that and put my image / style class on row click event. I couldn't find any code to do so. Can anyone guide me, where i should look.. or how to achive that?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks and regards,&lt;/p&gt;
&lt;p&gt;Tanmay.&lt;/p&gt;</description></item></channel></rss>