<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   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/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Lars´ Blog... - Entwicklung</title>
    <link>http://www.hamburg-fightclub.de/</link>
    <description>Fighting now in Bremen since 2006 / Managing the 'Eimsbush Kickers' since 2004</description>
    <dc:language>de</dc:language>
    <generator>Serendipity 1.1 - http://www.s9y.org/</generator>
    <pubDate>Thu, 29 Mar 2007 07:50:54 GMT</pubDate>

    <image>
        <url>http://www.hamburg-fightclub.de/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Lars´ Blog... - Entwicklung - Fighting now in Bremen since 2006 / Managing the 'Eimsbush Kickers' since 2004</title>
        <link>http://www.hamburg-fightclub.de/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Noch so eine Geschichte....</title>
    <link>http://www.hamburg-fightclub.de/archives/71-Noch-so-eine-Geschichte.....html</link>
            <category>Entwicklung</category>
    
    <comments>http://www.hamburg-fightclub.de/archives/71-Noch-so-eine-Geschichte.....html#comments</comments>
    <wfw:comment>http://www.hamburg-fightclub.de/wfwcomment.php?cid=71</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.hamburg-fightclub.de/rss.php?version=2.0&amp;type=comments&amp;cid=71</wfw:commentRss>
    

    <author>nospam@example.com (Lars Hamann)</author>
    <content:encoded>
    &lt;a href=&quot;http://groups.google.de/group/microsoft.public.dotnet.languages.vb/browse_thread/thread/76d2a0afe3aa93e5/4a5cc51dacd38a97%234a5cc51dacd38a97&quot; target=&quot;_blank&quot;&gt;Dieses&lt;/a&gt; Verhalten des ListView-Controls wurde in der Newsgroup 2002 diskutiert und als Bug an die Entwickler von Microsoft gesendet. Wieso tritt es 2007 nach gefühlten 20 neuen Framework Versionen immer noch auf?!?&lt;p&gt;Na ja, also kein FullRowSelect...&lt;/p&gt; 
    </content:encoded>

    <pubDate>Thu, 29 Mar 2007 09:50:54 +0200</pubDate>
    <guid isPermaLink="false">http://www.hamburg-fightclub.de/archives/71-guid.html</guid>
    
</item>
<item>
    <title>DataBinding mit null-Werten und einer ComboBox</title>
    <link>http://www.hamburg-fightclub.de/archives/70-DataBinding-mit-null-Werten-und-einer-ComboBox.html</link>
            <category>Entwicklung</category>
    
    <comments>http://www.hamburg-fightclub.de/archives/70-DataBinding-mit-null-Werten-und-einer-ComboBox.html#comments</comments>
    <wfw:comment>http://www.hamburg-fightclub.de/wfwcomment.php?cid=70</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.hamburg-fightclub.de/rss.php?version=2.0&amp;type=comments&amp;cid=70</wfw:commentRss>
    

    <author>nospam@example.com (Lars Hamann)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;Ich habe die letzten beiden Tage damit zugebracht, eine eigentlich kleine Geschichte unter .NET 2.0 zu realisieren.&lt;/p&gt;&lt;p&gt;Folgendes Szenario:&lt;br /&gt;Auf einer Form gibt es eine ComboBox. Diese ist an ein &lt;i&gt;BusinessObject &lt;/i&gt;gebunden (z. B. eine Person). Genauer ist die ComboBox an die Eigenschaft &lt;i&gt;Firma&lt;/i&gt; der Person gebunden. Da in diesem Fall die Eigenschaft &lt;i&gt;Firma &lt;/i&gt;optional ist kann die Property den Wert &lt;i&gt;null&lt;/i&gt; annhemen. Soweit so gut. Also das Binding der ComboBox mit folgenden Code realisiert:&lt;/p&gt;&lt;p&gt;&lt;font color=&quot;#0000ff&quot;&gt;&lt;b&gt;&lt;font size=&quot;2&quot;&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;Binding &lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=&quot;2&quot;&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;newBinding&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;b&gt;&lt;font size=&quot;2&quot;&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;font color=&quot;#000000&quot;&gt; =&lt;/font&gt; new &lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=&quot;2&quot;&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;Binding(&amp;quot;SelectedItem&amp;quot;, colPersonen, &amp;quot;Firma&amp;quot;);&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;b&gt;&lt;font size=&quot;2&quot;&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;br /&gt;this.&lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=&quot;2&quot;&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;cboFirma.Bindings.Add(newBinding);&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Soweit so gut. Wenn eine Person angzeigt wird, dann erscheint auch die entsprechende Firma. Man kann sie ändern und alles ist gut. Dann kommt das Fatale: &amp;quot;null&amp;quot;. Wenn man den Text der ComboBox leert und sie verlässt, dann erscheint der erste Eintrag der Auswahlliste und es wird nicht &amp;quot;null&amp;quot; in die Property geschrieben.&lt;/p&gt;&lt;p&gt;Das Problem findet sich unter anderem &lt;a target=&quot;_blank&quot; href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=99166&amp;SiteID=1&quot;&gt;hier&lt;/a&gt; und &lt;a href=&quot;http://www.codeproject.com/cs/combobox/NullableComboBox.asp&quot;&gt;hier&lt;/a&gt;. In den Newsgroups finden sich auf jeden Fall noch mehr Einträge zu dem Thema. Die angebotenen Lösungen waren aber alle nicht zufriedenstellend, da ich nicht vor hatte einen fiktiven leeren Eintrag in die Collection des DataSource aufzunehmen (Das hätte zuviel Umbauarbeiten nach sich gezogen).&lt;/p&gt;&lt;p&gt;Also fing ich an mit den Properties &lt;i&gt;DBNullValue &lt;/i&gt;und &lt;i&gt;NullValue&lt;/i&gt; der Binding-Klasse zu experimentieren. Allerdings funktionierte alles nicht. Es wurde immer der erste Eintrag wieder eingetragen. Auch nachdem ich explizit &lt;i&gt;null&lt;/i&gt; in der gebundenen Property zurückgegeben habe funktionierte das Binding nicht.&lt;/p&gt;&lt;p&gt;Es war also kein Problem der ComboBox, sondern des Bindings an sich. Als ich diesen &lt;a href=&quot;http://blogs.msdn.com/dchandnani/archive/2005/08/15/451979.aspx&quot; target=&quot;_blank&quot;&gt;Eintrag&lt;/a&gt; in einem MSDN-Blog las fiel mir der entscheidende Hinweis in den Schoß (Etwas versteckt, aber was solls, in der Doku steht&#039;s ja auch nicht wirklich):&lt;/p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 8pt; font-family: Verdana;&quot;&gt;Note: &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 8pt; font-family: Verdana;&quot;&gt;TextBox will display the NullValue if following conditions are met:&lt;/span&gt;&lt;span style=&quot;font-size: 8pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;p&gt;a) &lt;span style=&quot;font-size: 8pt; font-family: Verdana;&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-family: &#039;Times New Roman&#039;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Value in the DataTable is either DBNull.Value, null or DataSourceNullValue (read more about this below) AND&lt;span style=&quot;font-size: 8pt; font-family: Verdana;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;span style=&quot;font-size: 8pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 8pt; font-family: Verdana;&quot;&gt;&lt;span&gt;    b)&lt;span style=&quot;font-family: &#039;Times New Roman&#039;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font color=&quot;#ff0000&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 8pt; font-family: Verdana;&quot;&gt;Formatting is enabled.&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;span style=&quot;font-size: 8pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;p /&gt;&lt;p&gt;Um es einfach zu machen hab ich den entscheidenen Hinweis gleich hervorgehoben! Nachdem ich den obigen Code um diese kleinen Zeilen ergänzt hatte&lt;/p&gt;&lt;p&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;courier new,courier,monospace&quot;&gt;newBinding.FormattingEnabled = true;&lt;br /&gt;newBinding.DBNullValue = null;&lt;br /&gt;newBinding.NullValue = null;&lt;/font&gt;&lt;b&gt;&lt;font size=&quot;2&quot; face=&quot;courier new,courier,monospace&quot;&gt;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;funktionierte alles bestens. Hat ja nur knapp 16 Stunden gedauert und mich in dieser Zeit ziemlich frustriert...&lt;/p&gt; 
    </content:encoded>

    <pubDate>Tue, 27 Mar 2007 18:41:25 +0200</pubDate>
    <guid isPermaLink="false">http://www.hamburg-fightclub.de/archives/70-guid.html</guid>
    
</item>
<item>
    <title>Abfallprodukt</title>
    <link>http://www.hamburg-fightclub.de/archives/37-Abfallprodukt.html</link>
            <category>Entwicklung</category>
    
    <comments>http://www.hamburg-fightclub.de/archives/37-Abfallprodukt.html#comments</comments>
    <wfw:comment>http://www.hamburg-fightclub.de/wfwcomment.php?cid=37</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.hamburg-fightclub.de/rss.php?version=2.0&amp;type=comments&amp;cid=37</wfw:commentRss>
    

    <author>nospam@example.com (Lars Hamann)</author>
    <content:encoded>
    &lt;p&gt;&lt;font style=&quot;BACKGROUND-COLOR: #faffff&quot;&gt;Hier mal ein Abfallprodukt aus der Vorlesung &amp;quot;Intelligente Systeme&amp;quot;.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font style=&quot;BACKGROUND-COLOR: #faffff&quot;&gt;Das kleine &lt;a href=&quot;http://www.h-man.de/downloads/TicTacToe.zip&quot; target=&quot;_blank&quot;&gt;Spiel&lt;/a&gt; (Lauffähig unter .NET 2.0) kennt wohl jeder: Es ist Tic Tac Toe. Falls jemand mehr als ein Unentschieden gegen den Comupter schafft möge mir bitte einen Screenshot schicken. Das dürfte nämlich nicht funktionieren!&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font style=&quot;BACKGROUND-COLOR: #faffff&quot;&gt;Erinnert ein wenig an &lt;a href=&quot;http://www.imdb.com/title/tt0086567/&quot; target=&quot;_blank&quot;&gt;WarGames&lt;/a&gt; &lt;img src=&quot;http://www.hamburg-fightclub.de/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/font&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Mon, 05 Dec 2005 15:33:45 +0100</pubDate>
    <guid isPermaLink="false">http://www.hamburg-fightclub.de/archives/37-guid.html</guid>
    
</item>
<item>
    <title>SuDoKu Rätsel</title>
    <link>http://www.hamburg-fightclub.de/archives/35-SuDoKu-Raetsel.html</link>
            <category>Entwicklung</category>
    
    <comments>http://www.hamburg-fightclub.de/archives/35-SuDoKu-Raetsel.html#comments</comments>
    <wfw:comment>http://www.hamburg-fightclub.de/wfwcomment.php?cid=35</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.hamburg-fightclub.de/rss.php?version=2.0&amp;type=comments&amp;cid=35</wfw:commentRss>
    

    <author>nospam@example.com (Lars Hamann)</author>
    <content:encoded>
    &lt;p&gt;Nachdem Wolle beim letzten Familientreffen die ganze Zeit über ein &lt;a href=&quot;http://www.sudoku.com/&quot; target=&quot;_blank&quot;&gt;SoDuKo&lt;/a&gt;-Rätsel gebrütet hat, hab ich mich mal hingesetzt und ein &lt;a href=&quot;http://www.h-man.de/downloads/SuDoKu.zip&quot; target=&quot;_blank&quot;&gt;Programm&lt;/a&gt; geschrieben, das die Dinger löst.&lt;/p&gt;&lt;p&gt;Jetzt kann sich der Wolle auch wieder an der Unterhaltung beteiligen &lt;img src=&quot;http://www.hamburg-fightclub.de/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;.&lt;/p&gt;&lt;p&gt;Läuft aber nur bei installiertem &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5&amp;DisplayLang=en&quot; target=&quot;_blank&quot;&gt;.NET Framework 2.0&lt;/a&gt;.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Fri, 25 Nov 2005 17:52:34 +0100</pubDate>
    <guid isPermaLink="false">http://www.hamburg-fightclub.de/archives/35-guid.html</guid>
    
</item>
<item>
    <title>Work@Home</title>
    <link>http://www.hamburg-fightclub.de/archives/17-WorkHome.html</link>
            <category>Entwicklung</category>
    
    <comments>http://www.hamburg-fightclub.de/archives/17-WorkHome.html#comments</comments>
    <wfw:comment>http://www.hamburg-fightclub.de/wfwcomment.php?cid=17</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.hamburg-fightclub.de/rss.php?version=2.0&amp;type=comments&amp;cid=17</wfw:commentRss>
    

    <author>nospam@example.com (Lars Hamann)</author>
    <content:encoded>
    &lt;p&gt;&lt;font style=&quot;BACKGROUND-COLOR: #faffff&quot;&gt;Ich hätte ja nie gedacht, dass ich wirklich konsequent zu Hause arbeiten würde. Es klappt aber ganz gut, die Schnittstelle an der ich arbeite macht riesen Fortschritte.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font style=&quot;BACKGROUND-COLOR: #faffff&quot;&gt;Bei der Arbeit an der Schnittstelle hat sich wieder gezeigt, dass die Dokumentation von Microsoft manchmal echt besch*** ist.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font style=&quot;BACKGROUND-COLOR: #faffff&quot;&gt;Auszug aus der Exchange SDK Hilfe:&lt;/font&gt;&lt;/p&gt;&lt;p /&gt;&lt;hr /&gt;&lt;p /&gt;&lt;p&gt;&lt;font style=&quot;BACKGROUND-COLOR: #faffff&quot;&gt;&lt;strong&gt;&lt;em&gt;Non-Searchable Properties&lt;/em&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font style=&quot;BACKGROUND-COLOR: #faffff&quot;&gt;&lt;em&gt;The following properties cannot be searched because their values are only calculated when used and are not persisted in the Web Storage System.&lt;/em&gt;&lt;/font&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;font style=&quot;BACKGROUND-COLOR: #faffff&quot;&gt;&lt;em&gt;...&lt;/em&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;&lt;strong&gt;urn:schemas:httpmail:subject&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;...&lt;/em&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Warum dann allerdings folgendes funktioniert kann ich nicht beantworten:&lt;/p&gt;&lt;font size=&quot;2&quot;&gt;&lt;p&gt;... WHERE &amp;quot;urn:schemas:httpmail:subject&amp;quot; = &#039;Test&#039;&lt;/p&gt;&lt;/font&gt; 
    </content:encoded>

    <pubDate>Mon, 31 Oct 2005 13:37:59 +0100</pubDate>
    <guid isPermaLink="false">http://www.hamburg-fightclub.de/archives/17-guid.html</guid>
    
</item>

</channel>
</rss>
