﻿<?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 - Multiple-Lines in  Report Header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Multiple-Lines-in-Report-Header/</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>Multiple-Lines in  Report Header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Multiple-Lines-in-Report-Header/</link><pubDate>Wed, 16 Mar 2011 11:31:14 GMT</pubDate><dc:creator>dwh168</dc:creator><description>&lt;p&gt;I have tested your example and it works!&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thank you very much!&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;David&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Multiple-Lines in  Report Header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Multiple-Lines-in-Report-Header/</link><pubDate>Wed, 16 Mar 2011 03:12:18 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;I enclosed a simple sample of WebGrid that I created based on your description in your first message of this thread. The sample shows an unbound WebGrid where the Caption property is set in OnInitializeLayout server-side event.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;An ASP.NET button is added into the sample page in order to test the page after postback.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;I don’t need to set the value of UseDefaultStyle property to “False” in order to get the multiple-lines works on the column header. Could you please kindly test the attached sample file on your and let us know if you have different result ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;PS: you can try to use Developer Tools in IE 8 or Mozilla Firebug to get the definition of default style.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Multiple-Lines in  Report Header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Multiple-Lines-in-Report-Header/</link><pubDate>Tue, 15 Mar 2011 10:20:02 GMT</pubDate><dc:creator>dwh168</dc:creator><description>
&lt;p style=""&gt;I found that, if I set&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;headerwrapdefault="true" /&gt;&lt;/p&gt;
&lt;p&gt;UseDefaultStyle="false" , HeaderWrapDefault="true"&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;and insert " " between the header. It will work.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Any thing wrong with the DefaultStyle?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;BTW,&lt;/p&gt;
&lt;p&gt;Where I can find the DefaultStyle definition?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;David&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Multiple-Lines in  Report Header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Multiple-Lines-in-Report-Header/</link><pubDate>Mon, 14 Mar 2011 00:30:32 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I just got news from WebGrid development team.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In the current version of WebGrid 7.0, the column header does not support templated cell yet. The data type of Headertext is string. You may use your code by inserting the &amp;lt;br /&amp;gt; markup tag on the Headertext. However, the result will not be perfect. The markup will be treated as literal text.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I’d like to offer a better approach for your specific scenario. This approach will requires you to obtain the element of the column header. Once the element is obtained, you can directly insert the &amp;lt;br/&amp;gt; markup tag and set the innerHtml property of the corresponding element.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Should you need to have the column header to support template cell, please kindly let us know. I will help you by propose this as feature request to WebGrid development team.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Multiple-Lines in  Report Header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Multiple-Lines-in-Report-Header/</link><pubDate>Thu, 10 Mar 2011 03:51:51 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;/i&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;I was able to reproduce the issue on my local end.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Please give me more time to answer your question since I will have this issue forwarded to WebGrid development team for further investigation. I’ll get back to you as soon as I heard any news from the development team.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Thank you.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Multiple-Lines in  Report Header</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Multiple-Lines-in-Report-Header/</link><pubDate>Wed, 09 Mar 2011 15:48:21 GMT</pubDate><dc:creator>dwh168</dc:creator><description>&lt;p&gt;            I was tring to display Multiple-Line in report header.
        &lt;/p&gt;
        
            &lt;p&gt;
                &lt;br /&gt;
            &lt;/p&gt;
            &lt;p&gt;
                Something like Picture 1.&lt;/p&gt;
            &lt;p&gt;
                I put code like this: Headertext = "1 st line" &amp; "&amp;lt;br/&amp;gt;" &amp; "2nd line" "&amp;lt;br/&amp;gt;"
                "3rd line"&lt;/p&gt;
            &lt;p&gt;
                When user first display the report, it works fine -- like Picture 1.&lt;/p&gt;
            &lt;p&gt;
                &lt;br /&gt;
            &lt;/p&gt;
            &lt;p&gt;
                But if they post it back, it will looks like Picture 2&lt;/p&gt;
            &lt;p&gt;
                And if do it again, it will looks like Picture 3.&lt;/p&gt;
            &lt;p&gt;
                &lt;br /&gt;
            &lt;/p&gt;
            I tried insert Chr(13) and Chr(10), &amp;lt;br&amp;gt;, &amp;lt;br/&amp;gt; and &lt;strong&gt;&lt;em&gt;HeaderWrapDefault&lt;/em&gt;&lt;/strong&gt;="&lt;em&gt;&lt;strong&gt;true&lt;/strong&gt;&lt;/em&gt;"&lt;br /&gt;
            &lt;br /&gt;
            Not working.&lt;br /&gt;
            &lt;br /&gt;
            Could you please give any hint?&lt;br /&gt;
            &lt;br /&gt;
            Thanks!&lt;br /&gt;
            &lt;br /&gt;
            David&lt;br /&gt;
            &lt;p&gt;
                &lt;br /&gt;
            &lt;/p&gt;</description></item></channel></rss>