﻿<?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 - Can we set the selected row style in WebGrid to none ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Can-we-set-the-selected-row-style-in-WebGrid-to-none-/</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>Can we set the selected row style in WebGrid to none ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Can-we-set-the-selected-row-style-in-WebGrid-to-none-/</link><pubDate>Wed, 07 Apr 2010 22:57:49 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;You could try setting a new css class in the cell element of the disabled row and mark the style with &lt;em&gt;!important&lt;/em&gt; so it will not be overridden by the selected row style.&lt;/p&gt;&lt;p&gt;Here is an example of such workaround. Assign the new style to the disabled row for example, the row with key value 3 and WebGrid column ID, Name, Author, Category during the WebGrid AfterInitialize client side event. &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;function wgTest_OnAfterInitialize(controlId)&lt;br /&gt;{&lt;br /&gt;	var wgTest = ISGetObject(controlId);&lt;br /&gt;&lt;br /&gt;	var rowStruct = ["ID", "Name", "Author", "Category"];&lt;br /&gt;	var rowObj = wgTest.RootTable.GetRowByKeyValue("3");&lt;br /&gt;	for (var i = 0; i &amp;lt; rowStruct.length; i&amp;#43;&amp;#43;)&lt;br /&gt;	{&lt;br /&gt;	    rowObj.GetCell(rowStruct[i]).CellElement.className &amp;#43;= " Disabled-Row";&lt;br /&gt;	}&lt;br /&gt;	&lt;br /&gt;	return true;&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;Mark the css property as important so it will not be overridden by the selected row style:&lt;/p&gt;&lt;pre&gt;&amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;    .Disabled-Row&lt;br /&gt;    {&lt;br /&gt;        background-color: Red !important; &lt;br /&gt;        font-style: italic;&lt;br /&gt;    }&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Can we set the selected row style in WebGrid to none ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Can-we-set-the-selected-row-style-in-WebGrid-to-none-/</link><pubDate>Wed, 07 Apr 2010 03:13:32 GMT</pubDate><dc:creator>desaigs81</dc:creator><description>&lt;p&gt;We are using WebGrid 7.0 in SharePoint WebPart where we are rendering teh Grid programatically.&lt;/p&gt;
&lt;p&gt;For every selected row we are getting a light blue back color, which we do not want. In our grid we have coupel of non editable rows which we have grayed out by specifiying forcenoedit to true and setting row's back color. So, if i specify "White" color as back color for selected row style, then it will display white color for those grayed out rows as well. &lt;/p&gt;
&lt;p&gt;Is there a way we can set soem transpernte style or not style for selected row ?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item></channel></rss>