<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ADO.NET</title><link>https://www.dotnetzone.gr:443/cs/forums/78/ShowForum.aspx</link><description>Θέματα σχετικά με την προσπέλαση δεδομένων μέσω του ADO.NET και του System.Data namespace</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>client of parent/child db --&gt; 'System.Data.NoNullAllowedException fires but where to handle?</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/16948.aspx</link><pubDate>Wed, 20 Sep 2006 07:35:25 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:16948</guid><dc:creator>thAAAnos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/16948.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=78&amp;PostID=16948</wfw:commentRss><description>&lt;P&gt;Έχω φτιάξει ένα μικρό client για μια βάση με ένα parent/child σχημα , μονο ids parent(&lt;U&gt;id&lt;/U&gt;), child(&lt;U&gt;id,pid&lt;/U&gt;).&lt;/P&gt;
&lt;P&gt;Και έχω ενα gridview με ένα navigator για το parent και ένα gridview για τον child &lt;/P&gt;
&lt;P&gt;κάθως και το dataset, bindingSources etc&amp;nbsp;&amp;nbsp;όπως τα εφτιαξε ο desinger.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;προβλημα &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Αν προσθέσω 2 εγγραφες, (με το κουμπί click, click) &lt;/P&gt;
&lt;P&gt;πετάει αυτό: "An unhandled exception of type 'System.Data.NoNullAllowedException' occurred in System.Data.dll" πολυ σωστά γιατί primary key&lt;/P&gt;
&lt;P&gt;null δεν γίνεται... Το θέμα είναι πως να το χειριστώ? σε ποιο σημείο?&lt;/P&gt;
&lt;P&gt;εχω βάλει κενούς handlers για το datagrid-&amp;gt;DataError, bindingsource-&amp;gt;DataError no luck...&lt;/P&gt;</description></item></channel></rss>