﻿<?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 - Button in a column - Creates a null reference exception in prerender</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Button-in-a-column---Creates-a-null-reference-exception-in-prerender/</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>Button in a column - Creates a null reference exception in prerender</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Button-in-a-column---Creates-a-null-reference-exception-in-prerender/</link><pubDate>Mon, 09 Apr 2012 00:04:34 GMT</pubDate><dc:creator>Hans</dc:creator><category>WebGrid</category><category>column</category><category>PreRender</category><category>Button</category><category>databinding</category><category>null reference</category><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I apologize for any inconvenience this problem may have caused you.&lt;br /&gt;&lt;br /&gt;I have made a simple sample that maybe similar with your application scenario.&lt;br /&gt;I added WebGrid in WebUserControl page and I bind with Nortwind.mdb (Shippers table).&lt;br /&gt;Then I added WebGrid column’s code that you posted in my WebGrid.&lt;br /&gt;&lt;br /&gt;But unfortunately, I can’t replicate your issue on my end. I attached my sample in order to make you more understand the sample.&lt;br /&gt;&lt;br /&gt;Would you mind to telling me step-by-step How can I reproduce your issue.&lt;br /&gt;Or if you don’t mind, could you attach your simple sample that indicates your issue? So I can analyze your issue.&lt;br /&gt;&lt;br /&gt;Thank you.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Hans&lt;br /&gt;&lt;/p&gt;
</description></item><item><title>Button in a column - Creates a null reference exception in prerender</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Button-in-a-column---Creates-a-null-reference-exception-in-prerender/</link><pubDate>Fri, 06 Apr 2012 15:42:25 GMT</pubDate><dc:creator>beyti77</dc:creator><category>WebGrid</category><category>column</category><category>PreRender</category><category>Button</category><category>databinding</category><category>null reference</category><description>&lt;p&gt;I have a button in a webgrid as a column and its code like below:&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGridColumn runat="server" Bound="False" ButtonAutoPostback="true" 
 Width="40px" EditType="NoEdit" ButtonText="qweqwe" DataMember="Id" DefaultValue="0"
 ButtonImage="/Style/Images/tick.png"  ColumnType="ButtonImage" NewRowEditType="NoEdit" 
 ButtonPostbackMode="OnTheFly" Name="Id"&amp;gt;&amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;/pre&gt;
&lt;p&gt; As you can see, I've tried all I can think of but none of them helped me.&lt;/p&gt;
&lt;p&gt;Problem is, when I create a new item in the grid; the item is created successfully but after the creation; a pop-up screen appears and says a null reference exception is occured in the data binding to the webgrid.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;When I remove the column, everything is ok.&lt;/p&gt;
&lt;p&gt;And when I don't remove the column, eventhough it says a null ref exception is occured; after a refreshing the screen; I can see the item is created successfully and including the newly created item, every item is bind into the webgrid.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I would love if anybody could diect me into the right direction.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Info: The binding and the creation is by default and no override is included and linqdatasource is used for the data and given as a DataSourceId="dsSomething" in ascx page.&lt;/p&gt;
&lt;p /&gt;</description></item></channel></rss>