﻿<?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 - Ask about NullReferenceException.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Ask-about-NullReferenceException/</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>Ask about NullReferenceException.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Ask-about-NullReferenceException/</link><pubDate>Thu, 17 Jan 2013 21:04:12 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Can show us your table sturcture? For that error, have you checked if the current row might not have a child records? Perhaps, that is causing the issue. So you will need to add some validations to handle that error.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Handy&lt;/p&gt;</description></item><item><title>Ask about NullReferenceException.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Ask-about-NullReferenceException/</link><pubDate>Thu, 17 Jan 2013 04:40:51 GMT</pubDate><dc:creator>fernando.pablo@kcc.com</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I am trying to get the number of columns to Chiltable into my gridview whit this code.&lt;/p&gt;&lt;span style="font-size: 13px;"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255); font-size: 13px;"&gt;&lt;span style="color: rgb(0, 0, 255); font-size: 13px;"&gt;Dim&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px;"&gt; aso &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255); font-size: 13px;"&gt;&lt;span style="color: rgb(0, 0, 255); font-size: 13px;"&gt;As&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px;"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255); font-size: 13px;"&gt;&lt;span style="color: rgb(0, 0, 255); font-size: 13px;"&gt;Integer&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px;"&gt; = e.Row.GetChildTableRows(e.Row.Table.ChildTables(x)).Table.Rows.Count&lt;/span&gt;
&lt;p&gt;But some times  I have this error:  "&lt;span class="hps"&gt;user code&lt;/span&gt; &lt;span class="hps"&gt;not control NullReferenceException".&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="hps"&gt;Any idea about that?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="hps"&gt;Thanks in advance.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="hps"&gt;&lt;/span&gt; &lt;/p&gt;&lt;span style="font-size: 13px;"&gt;&lt;/span&gt;</description></item></channel></rss>