﻿<?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 - Combo in a grid not getting refreshed</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Combo-in-a-grid-not-getting-refreshed/</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>Combo in a grid not getting refreshed</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Combo-in-a-grid-not-getting-refreshed/</link><pubDate>Mon, 03 Sep 2012 02:18:48 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi Shri,&lt;/p&gt;&lt;p&gt;You're welcome. Glad to help you.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bernard&lt;/p&gt;</description></item><item><title>Combo in a grid not getting refreshed</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Combo-in-a-grid-not-getting-refreshed/</link><pubDate>Mon, 03 Sep 2012 01:47:42 GMT</pubDate><dc:creator>Shri</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I already did the thing by doing postback. Thanks anyways&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Combo in a grid not getting refreshed</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Combo-in-a-grid-not-getting-refreshed/</link><pubDate>Sun, 02 Sep 2012 22:15:52 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi Shri,&lt;/p&gt;&lt;p&gt;I think, to achieve this scenario, you must do Postback to get the data from the session or WebGrid. I tried many ways to achieve this scenario but unfortunately it still have to call the data from WebGrid and Session on Postback.&lt;/p&gt;
&lt;p&gt;The best way to do this scenario is when you edit the WebGrid you bind Datasource in WebGrid to WebCombo so data in WebCombo is the same as WebGrid. Or you can put datasource in WebGrid as DataTable inside the Session and bind it to WebCombo.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bernard&lt;/p&gt;</description></item><item><title>Combo in a grid not getting refreshed</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Combo-in-a-grid-not-getting-refreshed/</link><pubDate>Thu, 30 Aug 2012 08:08:59 GMT</pubDate><dc:creator>Shri</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;On Rowadd from the Clienside i call pagemethod and i save the grid changes in the session.&lt;/p&gt;
&lt;p&gt;I checked when i call the intialize datasource of Combo the session shows the updated changes that is State for the corresponding Serial number.&lt;/p&gt;
&lt;p&gt;But when i click on the Webcombo colum of grid the webcombo does not refresh with new changes. But under preparedatabinding in the webcombo datasource i can see the newly created item.&lt;/p&gt;
&lt;p&gt;If i put the Postabakc button the Combo gets loaded with the new values. But i dont want to put the postback button. Please help&lt;/p&gt;</description></item><item><title>Combo in a grid not getting refreshed</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Combo-in-a-grid-not-getting-refreshed/</link><pubDate>Thu, 30 Aug 2012 01:43:29 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi Shri,&lt;/p&gt;&lt;p&gt;I think you can use WebGrid's DataSource as your WebCombo DataSource. You can do it by using this code:&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;DataTable dt = (DataTable)WebGrid1.DataSource;&lt;/pre&gt;
&lt;p&gt;Then inside DataTable, you can put the changes in Session as new DataRow. Then you can rebind the DataTable with WebCombo1 when you Initialize WebGrid or change WebGrid. Hope this helps. If this doesn't meet you scenario, could your tell me what changes that you save inside the session?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bernard&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>Combo in a grid not getting refreshed</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Combo-in-a-grid-not-getting-refreshed/</link><pubDate>Thu, 30 Aug 2012 00:41:38 GMT</pubDate><dc:creator>Shri</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;Hi Bernard&lt;/p&gt;&lt;p&gt;Thanks For your reply. Let me explain you my flow. As the above solution is solving my problem.&lt;/p&gt;&lt;p&gt;1&amp;gt; I have two grids on my page. In First grid the serial Numbers are entered on the page load as fixed set of rows that is 5. So for row 1(that is serial Number 1)&amp;nbsp;I select a value from the second column which is the dropdwon for the State. This changes i capture in the session. Nothing is saved&amp;nbsp; in the database.&lt;/p&gt;&lt;p&gt;2&amp;gt; In the second grid.First column is a dropdown which has the above Serial numbers. On selection of the serical number i show the state in next colum .&lt;/p&gt;&lt;p&gt;&amp;nbsp;My problem is as i am updating the session the dropdwn is not updating. I checked your code but it needs postback to get the Dropdown loaded again. Is there any other way to load dropdwn with new Values without doing the postback. Please Help.&lt;/p&gt;&lt;/blockquote&gt;
</description></item><item><title>Combo in a grid not getting refreshed</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Combo-in-a-grid-not-getting-refreshed/</link><pubDate>Wed, 29 Aug 2012 08:53:03 GMT</pubDate><dc:creator>Shri</dc:creator><description>&lt;p&gt;Hi Bernard&lt;/p&gt;
&lt;p&gt;Thanks For your reply. Let me explain you my flow. As the above solution is solving my problem.&lt;/p&gt;
&lt;p&gt;1&amp;gt; I have two grids on my page. In First grid the serial Numbers are entered on the page load as fixed set of rows that is 5. So for row 1(that is serial Number 1) I select a value from the second column which is the dropdwon for the State. This changes i capture in the session. Nothing is saved  in the database.&lt;/p&gt;
&lt;p&gt;2&amp;gt; In the second grid.First column is a dropdown which has the above Serial numbers. On selection of the serical number i show the state in next colum .&lt;/p&gt;
&lt;p&gt; My problem is as i am updating the session the dropdwn is not updating. I checked your code but it needs postback to get the Dropdown loaded again. Is there any other way to load dropdwn with new Values without doing the postback. Please Help.&lt;/p&gt;</description></item><item><title>Combo in a grid not getting refreshed</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Combo-in-a-grid-not-getting-refreshed/</link><pubDate>Mon, 27 Aug 2012 01:28:58 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi Shri,&lt;/p&gt;&lt;p&gt;I'm a little bit confuse about your scenario that you mentioned above. But I think the problem comes when you open the WebCombo on 2nd WebGrid (the value of WebCombo hasn't been updated yet). For this issue, I've made my own sample. Could you look for my sample? And if there's any misconfiguration of wrong scenario that I made, could you explain me step by step the scenario that you want to achieve?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bernard&lt;/p&gt;</description></item><item><title>Combo in a grid not getting refreshed</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Combo-in-a-grid-not-getting-refreshed/</link><pubDate>Sat, 25 Aug 2012 00:31:38 GMT</pubDate><dc:creator>Shri</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I am having two grids on page. I have to show the serial numbers from the grid one as the combo items of the secon grid. Both the grids will be saved on the one save button at a time. i am saving the first grid changes in the session. so on the click of second grid web combo column the newly added serial numbers are not shown.By combo getting filled up at page load and at  preparedatabinding. Please give me the solution.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>