﻿<?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 - HeaderStyle</title><link>http://www.intersoftsolutions.com/Community/WebGrid/HeaderStyle/</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>HeaderStyle</title><link>http://www.intersoftsolutions.com/Community/WebGrid/HeaderStyle/</link><pubDate>Fri, 21 Aug 2009 03:41:02 GMT</pubDate><dc:creator>Mark.R.P</dc:creator><description>&lt;p&gt;&lt;/p&gt;Thanks, this has solved my issue.</description></item><item><title>HeaderStyle</title><link>http://www.intersoftsolutions.com/Community/WebGrid/HeaderStyle/</link><pubDate>Fri, 21 Aug 2009 03:19:54 GMT</pubDate><dc:creator>gordont</dc:creator><description>&lt;p&gt;Hi Mark,&lt;/p&gt;
&lt;p&gt;I am really sorry but the following article only for WebGrid 6 and below. For WebGrid 7 we have enhance the feature so you can set the height or other style but still have the default style.&lt;/p&gt;
&lt;p&gt;This is the code behind for InitializeLayout event:&lt;/p&gt;&lt;pre&gt;protected void WebGrid1_InitializeLayout(object sender, ISNet.WebUI.WebGrid.LayoutEventArgs e)
    {
        e.Layout.HeaderStyle.Height = 40; // You can change the height according to your scenario
        e.Layout.AllowDefaultStyleMerging = true;
    }&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Gordon Tumewu&lt;/p&gt;</description></item><item><title>HeaderStyle</title><link>http://www.intersoftsolutions.com/Community/WebGrid/HeaderStyle/</link><pubDate>Fri, 21 Aug 2009 02:06:52 GMT</pubDate><dc:creator>Mark.R.P</dc:creator><description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I want to do this on the server side i need to do this in the InitializeLayout event. I have tried the following but it does not seem to work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;span size="2"&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;pre&gt;            e.Layout.RowHeightDefault = new Unit(-1, UnitType.Pixel);
            e.Layout.HeaderStyle.CssClass = "WG5-Header";
            e.Layout.HeaderStyle.CustomRules = "height: auto";&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span size="2"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span size="2"&gt;Can you please inform me how I can do this on the server side?&lt;/span&gt;&lt;/p&gt;</description></item><item><title>HeaderStyle</title><link>http://www.intersoftsolutions.com/Community/WebGrid/HeaderStyle/</link><pubDate>Fri, 21 Aug 2009 00:06:14 GMT</pubDate><dc:creator>gordont</dc:creator><description>&lt;p&gt;Hi Mark,&lt;/p&gt;
&lt;p&gt;For issue number 1, we have KB article regarding this feature, you can browse it in &lt;a href="http://support.intersoftpt.com/KBArticle.aspx?aid=229"&gt;http://support.intersoftpt.com/KBArticle.aspx?aid=229&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For issue number 2, I am sorry but if you want to use our default style then you cannot change the header height.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Gordon Tumewu&lt;/p&gt;</description></item><item><title>HeaderStyle</title><link>http://www.intersoftsolutions.com/Community/WebGrid/HeaderStyle/</link><pubDate>Thu, 20 Aug 2009 22:50:50 GMT</pubDate><dc:creator>Mark.R.P</dc:creator><description>&lt;p&gt;I am using webgrid 7.0 with the UseDefaultStyle set to true.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would like to do the following:&lt;/p&gt;
&lt;p&gt;1. Have column captions wrap if they are longer than the width of the column.&lt;/p&gt;
&lt;p&gt;2. Be able to set the HeaderStyle.Height property but not lose the DefaultStyle on the headers.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you please inform on how I can do this?&lt;/p&gt;</description></item></channel></rss>