﻿<?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 - TableHeaderStyle cssclass  is not getting set if we load the tablestructure from db</title><link>http://www.intersoftsolutions.com/Community/WebGrid/TableHeaderStyle-cssclass-is-not-getting-set-if-we-load-the-tablestructure-from-db/</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>TableHeaderStyle cssclass  is not getting set if we load the tablestructure from db</title><link>http://www.intersoftsolutions.com/Community/WebGrid/TableHeaderStyle-cssclass-is-not-getting-set-if-we-load-the-tablestructure-from-db/</link><pubDate>Mon, 19 Dec 2011 22:23:48 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Madhavan,&lt;/p&gt;&lt;p&gt;Please see my attached sample. It still can render the style when load the stucture.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>TableHeaderStyle cssclass  is not getting set if we load the tablestructure from db</title><link>http://www.intersoftsolutions.com/Community/WebGrid/TableHeaderStyle-cssclass-is-not-getting-set-if-we-load-the-tablestructure-from-db/</link><pubDate>Mon, 19 Dec 2011 04:07:48 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Team,&lt;/p&gt;
&lt;p&gt;We are using Webgrid 7 and we have the option to store the layout in db with rearranging columns,sorting specified etc.&lt;/p&gt;
&lt;p&gt;We have specified Styles for Rowstyle,HeaderStyle,TableHeaderStyle through CssClass.&lt;/p&gt;
&lt;p&gt;When we load the saved layout structure the TableHeaderStyle css class is not getting set.&lt;/p&gt;
&lt;p&gt;It is taking the HeaderStyle CssClass instead of TableHeaderStyle css class.&lt;/p&gt;
&lt;p&gt;If i load the webgrid without loading the structure from db then css class is set correctly to tableheaderstylecss class.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;We are using like for loading the structure.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;
System.Text.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;UnicodeEncoding&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; encoding = &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; System.Text.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;UnicodeEncoding&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;(); 

&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;byte&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;[] griddataarray = encoding.GetBytes(workflowgridxmldata); 

&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;MemoryStream&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; ms = &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;MemoryStream&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;(griddataarray); 

ms.Seek(0, System.IO.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;SeekOrigin&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;.Begin); 

&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; (WebGrid1.FlyPostBackAction == &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 13px"&gt;""&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; || WebGrid1.FlyPostBackAction == &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 13px"&gt;"None"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;) 

&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;WebGrid1.LoadTablesStructureFromXml(ms);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Madhavan&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>