﻿<?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 - Remove column name and ID from grouped column on export</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Remove-column-name-and-ID-from-grouped-column-on-export/</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>Remove column name and ID from grouped column on export</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Remove-column-name-and-ID-from-grouped-column-on-export/</link><pubDate>Thu, 29 Oct 2009 06:50:43 GMT</pubDate><dc:creator>staffan.eriksson@semita.se</dc:creator><category>export</category><description>&lt;p&gt;In my VB code I added:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;WebGrid1.RootTable.GroupedColumns(0).GroupRowValueFormatString = &lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"[value]"&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;and it works!&lt;br /&gt;&lt;br /&gt;It looks like there are bugs regarding doing this any other way.&lt;br /&gt;&lt;br /&gt;// Staffan&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;
&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;/span&gt;&lt;/span&gt;</description></item><item><title>Remove column name and ID from grouped column on export</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Remove-column-name-and-ID-from-grouped-column-on-export/</link><pubDate>Thu, 15 Oct 2009 03:53:51 GMT</pubDate><dc:creator>james</dc:creator><category>export</category><description>&lt;p&gt;Staffan, one more thing worth to try. &lt;/p&gt;&lt;p&gt;It seems somehow the exporting process disregards the properties set at column and table level. So you can shoot directly at the group column level. For instance,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre&gt;grid.RootTable.GroupedColumns[0].GroupRowValueFormatString = "[value]";&lt;/pre&gt;
&lt;p&gt;Let me know if that does the trick.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Anyhow, if that works, I'll still assume this issue is a bug since the exporting should have take account the other two level of properties (column and table). &lt;/p&gt;</description></item><item><title>Remove column name and ID from grouped column on export</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Remove-column-name-and-ID-from-grouped-column-on-export/</link><pubDate>Thu, 15 Oct 2009 02:42:12 GMT</pubDate><dc:creator>staffan.eriksson@semita.se</dc:creator><category>export</category><description>&lt;p&gt;I've tried both:&lt;/p&gt;&lt;span style="font-size: 13px"&gt;WebGrid1.RootTable.Columns.GetNamedItem(&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"AccountGroupText"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;).GroupRowInfoFormat = &lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"[value]"

&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;WebGrid1.RootTable.GroupRowInfoFormatDefault = &lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"[value]"&lt;/span&gt;&lt;/span&gt;

&lt;p&gt;But it makes no difference. The WebGrid on the screen looks correct but when exporting to pdf for some reason it shows "AccountGroupText: x" on each group header and it's not acceptable for user friendly reasons.&lt;br /&gt;&lt;br /&gt;Isn't it possible to loop through each row in the DataDynamics object model and remove the first x characters if it's a group header row?&lt;/p&gt;
&lt;p&gt;// Staffan&lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;</description></item><item><title>Remove column name and ID from grouped column on export</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Remove-column-name-and-ID-from-grouped-column-on-export/</link><pubDate>Thu, 15 Oct 2009 00:17:34 GMT</pubDate><dc:creator>james</dc:creator><category>export</category><description>&lt;p&gt;Staffan,&lt;/p&gt;&lt;p&gt;Okay, it seems like initializing the column property during Export event is too late. I guess that's because the data source is already populated and bound in that event.&lt;/p&gt;
&lt;p&gt;Try to set the column property in InitializePostBack event. See the code below.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre&gt;void WebGrid1_InitializePostBack(object sender, ISNet.WebUI.WebGrid.PostbackEventArgs e)
{
    if (e.Action == PostBackAction.Export)
    {
         WebGrid1.RootTable.Columns.GetNamedItem("AccountGroupText").GroupRowInfoFormat = "[value]"
     }
}&lt;/pre&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;James.&lt;/p&gt;</description></item><item><title>Remove column name and ID from grouped column on export</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Remove-column-name-and-ID-from-grouped-column-on-export/</link><pubDate>Wed, 14 Oct 2009 13:23:11 GMT</pubDate><dc:creator>staffan.eriksson@semita.se</dc:creator><category>export</category><description>&lt;p&gt;In the Export event I've added this code:&lt;br /&gt;&lt;/p&gt;&lt;span style="font-size: 13px"&gt;WebGrid1.RootTable.Columns.GetNamedItem(&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"AccountGroupText"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;).GroupRowInfoFormat = &lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"[value]"
&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&lt;br /&gt;Unfortunately it still shows "AccountGroupText: x" when exporting. Have I done anything wrong?&lt;br /&gt;&lt;br /&gt;// Staffan&lt;/p&gt;</description></item><item><title>Remove column name and ID from grouped column on export</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Remove-column-name-and-ID-from-grouped-column-on-export/</link><pubDate>Wed, 14 Oct 2009 09:41:22 GMT</pubDate><dc:creator>james</dc:creator><category>export</category><description>&lt;p&gt;Staffan,&lt;/p&gt;&lt;p&gt;It's actually possible to show the text during exporting instead of the value. You can set the EnableValueList property of the export's argument to true during Export event.&lt;/p&gt;
&lt;p&gt;Here's the sample codes:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre&gt;    protected void Page_Load(object sender, EventArgs e)
    {
        WebGrid1.Export &amp;#43;= new ISNet.WebUI.WebGrid.ExportEventHandler(WebGrid1_Export);
    }
    void WebGrid1_Export(object sender, ISNet.WebUI.WebGrid.ExportEventArgs e)
    {
        e.ReportInfo.&lt;b&gt;&lt;i&gt;EnableValueList&lt;/i&gt;&lt;/b&gt; = true;
    }
&lt;/pre&gt;
&lt;p&gt;For the group info format, yes, you can customize that one as well in the Export event. Try setting the &lt;b&gt;GroupRowInfoFormatDefault&lt;/b&gt; property to "[value]" (without the double quote). The property is available in global level (LayoutSettings), table level and column level, so you can choose which suits you the best.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;br /&gt;James.&lt;/p&gt;</description></item><item><title>Remove column name and ID from grouped column on export</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Remove-column-name-and-ID-from-grouped-column-on-export/</link><pubDate>Wed, 14 Oct 2009 07:58:03 GMT</pubDate><dc:creator>staffan.eriksson@semita.se</dc:creator><category>export</category><description>&lt;p&gt;That's very sad because the built-in exporting functionality can't be used in a real world scenario then.&lt;br /&gt;&lt;br /&gt;Is it possible to only show the value and not the column name and value as it does right now?&lt;br /&gt;&lt;br /&gt;// Staffan E.&lt;/p&gt;</description></item><item><title>Remove column name and ID from grouped column on export</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Remove-column-name-and-ID-from-grouped-column-on-export/</link><pubDate>Mon, 14 Sep 2009 03:13:02 GMT</pubDate><dc:creator>gordont</dc:creator><category>export</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am really sorry but it's the default behaviour for exporting in WebGrid, the export result will shows the value instead of the text. &lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Gordon Tumewu&lt;/p&gt;</description></item><item><title>Remove column name and ID from grouped column on export</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Remove-column-name-and-ID-from-grouped-column-on-export/</link><pubDate>Thu, 10 Sep 2009 09:28:34 GMT</pubDate><dc:creator>staffan.eriksson@semita.se</dc:creator><category>export</category><description>&lt;p&gt;I'm grouping my WebGrid 6.0.216 on this column:&lt;br /&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&amp;lt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;ISWebGrid&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;WebGridColumn&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;Caption&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;PriceType"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;DataMember&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="PriceTypeID" 
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;DataType&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="System.Int32"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;EditType&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="DropdownList"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;InputRequired&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="True"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;InputRequiredErrorText&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="Add price type!"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;UseValueListForSorting&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="Yes"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;Name&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="PriceTypeID"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;Width&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="125px"&amp;gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;ValueList&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;DataMember&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="DefaultView"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;DataSourceID&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="PriceTypeDataSource"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;DataTextField&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="PriceTypeDescription"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;DataValueField&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="PriceTypeID"&amp;gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;ValueList&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&amp;gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;ISWebGrid&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;WebGridColumn&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;

&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;GroupedColumns&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&amp;gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;ISWebGrid&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;WebGridGroup&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;ColumnMember&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="PriceTypeID"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;GroupInterval&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="text"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;SortOrder&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="Ascending"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;/&amp;gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;GroupedColumns&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #000000"&gt;The text, not the ID of the column is beautifully shown when running the page, but when exporting to pdf it shows "PriceTypeID: 1" instead of the test of the column. How can I remove "PriceTypeID" from the exported pdf and how can I show the text instead of the ID?&lt;br /&gt;&lt;br /&gt;// Staffan E.&lt;/span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</description></item></channel></rss>