﻿<?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 - Hier</title><link>http://www.intersoftsolutions.com/Community/Tags/Hier/</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>Hierarchical Grid,  how to refresh the data of the child table?</title><link>http://www.intersoftsolutions.com/Community/Tags/Hier/</link><pubDate>Tue, 14 Sep 2010 08:29:46 GMT</pubDate><dc:creator>danielerm78</dc:creator><category>Hierarchical Grid</category><category>Hier</category><description>Hi,
&lt;p&gt;I have an Hierarchical Grid with one Child table.&lt;/p&gt;
&lt;p&gt;The rootTable has a DataMember filled by a storedProcedure and I use for this Datasource&lt;/p&gt;
&lt;p&gt;a FilterExpression attribute and a FilterParameters tag:&lt;/p&gt;
&lt;p&gt;&amp;lt;FilterParameters&amp;gt;&lt;br /&gt; &amp;lt;asp:ControlParameter PropertyName="Text" Name="invoicenumber" ControlID="TextBox1"&amp;gt;&amp;lt;/asp:ControlParameter&amp;gt;&lt;br /&gt; &amp;lt;/FilterParameters&amp;gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The child Table has a DataMember filled by a storedProcedure which has as input parameter&lt;/p&gt;
&lt;p&gt;a ControlParameter:&lt;/p&gt;
&lt;p&gt;&amp;lt;asp:ControlParameter ControlID="TextBox2" ConvertEmptyStringToNull="True" &lt;br /&gt; DefaultValue="" Name="productnumber" PropertyName="Text" Type="String" /&amp;gt;&lt;/p&gt;
&lt;p&gt;So the stored procedure use this parameter to make the query.&lt;/p&gt;
&lt;p&gt;I added a button on my application and inside the Button event I put this code to refresh the data:&lt;/p&gt;
&lt;p&gt;WebGrid1.DataBind();&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;So the data of the root table is refreshed but the data of the child table no.&lt;/p&gt;
&lt;p&gt;Why?&lt;/p&gt;
&lt;p&gt;The same thing if I &lt;span class="short_text" id="result_box"&gt;&lt;span title="" style="background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);"&gt;remove the &lt;/span&gt;&lt;/span&gt;ControlParameter for the DataMember used for the childTable&lt;/p&gt;
&lt;p&gt;and use I FilterExpression attribute and a FilterParameters tag.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;So how to refresh the also data of the ChildGrid for a Hierarchical Grid?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advanced.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Daniele Barbini&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></channel></rss>