﻿<?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 - WebGrid renders empty and requires click on refresh button on grid to see data</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-renders-empty-and-requires-click-on-refresh-button-on-grid-to-see-data/</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 renders empty and requires click on refresh button on grid to see data</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-renders-empty-and-requires-click-on-refresh-button-on-grid-to-see-data/</link><pubDate>Thu, 18 Sep 2014 03:50:52 GMT</pubDate><dc:creator>Hans</dc:creator><category>webgrid refresh grid data</category><description>&lt;p&gt;Hello,&lt;br&gt;&lt;br&gt;If you want to bind the WebGrid programmatically, you should initialize your databinding in ‘OnInitializeDataSource’ server side event.&lt;br&gt;&lt;br&gt;I attached the example WebGrid page that use ‘InitializeDataSource’ event.&lt;br&gt;In this page, the WebGrid was bind to access data source (Northwind.mdb database &amp;amp; Shippers table)&lt;br&gt;Please kindly have review on the page to see the result.&lt;br&gt;&lt;br&gt;Hope this helps.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Hans K.&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description></item><item><title>WebGrid renders empty and requires click on refresh button on grid to see data</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-renders-empty-and-requires-click-on-refresh-button-on-grid-to-see-data/</link><pubDate>Wed, 17 Sep 2014 19:19:47 GMT</pubDate><dc:creator>sjrief</dc:creator><category>webgrid refresh grid data</category><description>&lt;p&gt;I have a webgrid bound to a datasource, and on the initial page load, the grid renders completely empty. The user then needs to click the "refresh grid data" button at the bottom of the grid in order to have the grid populated with the data.&lt;/p&gt;&lt;p&gt;I've placed this on page load, without success:&lt;br&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dsReport.DataBind();&lt;br&gt;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WebGrid2.ClearCachedDataSource();&lt;br&gt;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WebGrid2.RebindDataSource();&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;I've also tried, without success:&lt;br&gt;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dsReport.DataBind();&lt;br&gt;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WebGrid2.DataBind();&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>