﻿<?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 in unbound mode throws NullReferenceException in RenderControl</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-in-unbound-mode-throws-NullReferenceException-in-RenderControl/</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 in unbound mode throws NullReferenceException in RenderControl</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-in-unbound-mode-throws-NullReferenceException-in-RenderControl/</link><pubDate>Thu, 24 Mar 2011 06:08:44 GMT</pubDate><dc:creator>RobertPehrson</dc:creator><category>unbound RenderControl</category><description>&lt;p&gt;Hi Lily,&lt;/p&gt;
&lt;p&gt;Thanks for your reply - happily I've now got past the exception in RenderControl. &lt;/p&gt;
&lt;p&gt;I've been working from the &lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #2b91af; font-size: 13px"&gt;Hierarchical_Unbound_Programmatic&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; tutorial, and a straight run through works fine.  The problem arises when I try to integrate into our project environment, building the control on demand and picking up the data structure and data from our data objects - it was hard to tell what was causing the crash in RenderControl.  It turns out that I was giving more values in the data array (&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;table.Rows.AddRange)&lt;/span&gt;&lt;/span&gt; than there were columns in the table; once the right number of values are provided, I get through RenderControl OK.  &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Robert&lt;/p&gt;</description></item><item><title>WebGrid in unbound mode throws NullReferenceException in RenderControl</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-in-unbound-mode-throws-NullReferenceException-in-RenderControl/</link><pubDate>Thu, 24 Mar 2011 02:32:32 GMT</pubDate><dc:creator>lili</dc:creator><category>unbound RenderControl</category><description>&lt;p&gt;Hi Robert,&lt;/p&gt;
&lt;p&gt;Have you tried to follow our sample about unbound WebGrid? It should be working fine if you follow our sample. But if the problem still occurs, please tell me more details so that I can replicate your issue. Did you call any function in your unbound WebGrid?&lt;/p&gt;
&lt;p&gt;When you operate an unbound WebGrid, all the databound features should be disabled and flypostback process as well. &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Regards,&lt;br /&gt;Lili Khiung&lt;/p&gt;</description></item><item><title>WebGrid in unbound mode throws NullReferenceException in RenderControl</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-in-unbound-mode-throws-NullReferenceException-in-RenderControl/</link><pubDate>Wed, 23 Mar 2011 08:17:30 GMT</pubDate><dc:creator>RobertPehrson</dc:creator><category>unbound RenderControl</category><description>&lt;p&gt;&lt;span style="line-height: 115%; font-family: 'calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'times new roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: en-gb; mso-fareast-language: en-us; mso-bidi-language: ar-sa"&gt;I am adding an unbound WebGrid into an existing project, and my call to the WebGrid's RenderControl is throwing NullReferenceException.&amp;nbsp; I have no problem when building the unbound WebGrid in isolation, so I guess that something in the project infrastructure is causing problems but cannot see what this could be.&amp;nbsp; It is as though the grid is expecting a datasource and then failing because DataSource is null.&amp;nbsp; Are there properties that are used to signal unbound mode in RenderControl other than the DataSource?&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="line-height: 115%; font-family: 'calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'times new roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: en-gb; mso-fareast-language: en-us; mso-bidi-language: ar-sa"&gt;I note that all data-bound operations should be disabled in unbound mode, and I believe that I've done so, but wonder if an omission here could be the cause of the problem.&amp;nbsp; If so, what exactly are the operations to be disabled?&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>