﻿<?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 - Lounge - WebGrid - Export to XML not working</title><link>http://www.intersoftsolutions.com/Community/Lounge/WebGrid---Export-to-XML-not-working/</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>WebGrid - Export to XML not working</title><link>http://www.intersoftsolutions.com/Community/Lounge/WebGrid---Export-to-XML-not-working/</link><pubDate>Thu, 30 Oct 2014 05:00:26 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebGrid</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I created a simple sample of WebGrid where the datasource is DataTable; and was able to export WebGrid's data to XML without any problems. Please find my sample in the attachment; test it on your end; and let me know if you have different result.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;For your information, I'm using the latest version of WebGrid 8 in my local end.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid - Export to XML not working</title><link>http://www.intersoftsolutions.com/Community/Lounge/WebGrid---Export-to-XML-not-working/</link><pubDate>Wed, 29 Oct 2014 07:36:03 GMT</pubDate><dc:creator>macbeth.karunanidhi</dc:creator><category>WebGrid</category><description>&lt;p&gt;I am getting an error when exporting a web&amp;nbsp;grid to XML. The error message is "Cannot change the name of the DataSet to an empty string."&lt;/p&gt;&lt;p&gt;I tried setting the data source as datatable and dataset. Both give same error. Pls help!&lt;/p&gt;&lt;p&gt;Code Snippet below..&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Web Grid Definition -&lt;/strong&gt;&lt;/p&gt;&lt;pre&gt; &amp;lt;ISWebGrid:WebGrid ID="WebGrid1" runat="server" AllowAutoDataCaching="True" Visible="false" DataMember="CarrierList" Height="430px" UseDefaultStyle="True" Width="100%" OnExport="WebGrid1_Export" OnExportCompleted="WebGrid1_ExportCompleted" OnPrepareExportExecute="WebGrid1_PrepareExportExecute" OnInitializePostBack="WebGrid1_InitializePostBack" OnInitializeRow="WebGrid1_InitializeRow" OnInitializeDataSource="WebGrid1_InitializeDataSource" &amp;gt;
&amp;lt;RootTable DataKeyField="Oid" GroupMode="Collapsed" DataMember="CarrierList" Caption="CarrierList"&amp;gt;
&amp;lt;Columns&amp;gt;
...
...
&amp;lt;/Columns&amp;gt;
 &amp;lt;/RootTable&amp;gt;
&amp;lt;LayoutSettings  AllowColumnMove="Yes" AllowExport="Yes" AllowGrouping="No" AllowSelectColumns="Yes" AllowFilter="Yes" AllowSorting="Yes" ApplyFiltersKey="Enter" AutoFilterSuggestion="true" PagingMode="VirtualLoad" RowChangedAction="none" AlwaysShowHelpButton="False" RowHighlightType="EntireRow" InProgressUIBehavior="ChangeCursorToHourGlass" ShowFilterStatus="True" CellClickAction="rowSelect" FilterBarVisible="False"&amp;gt;
&amp;lt;FreezePaneSettings ShowInContextMenu="True" MaxFrozenColumns="2" /&amp;gt;
&amp;lt;GroupByBox ContextMenu="false"&amp;gt;
&amp;lt;/GroupByBox&amp;gt;
&amp;lt;ClientSideEvents OnRowContextMenu="WebGrid1_OnRowContextMenu"/&amp;gt;
&amp;lt;/LayoutSettings&amp;gt;
&amp;lt;/ISWebGrid:WebGrid&amp;gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Data Source -&lt;/strong&gt;&lt;/p&gt;&lt;pre&gt; try
{
   DataSet ds = new DataSet("CarrierList");                
   ds.Tables.Add(_dt);
   e.DataSource = ds;
}&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/span&gt;&lt;/p&gt;&lt;span size="2" face="Consolas"&gt;&lt;span size="2" face="Consolas"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;
&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;/span&gt;&lt;/span&gt;</description></item></channel></rss>