<?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>WinForms</title><link>https://www.dotnetzone.gr:443/cs/forums/12/ShowForum.aspx</link><description>Θέματα για rich client / windows εφαρμογές, σε οποιαδήποτε γλώσσα (VB.NET, C#, managed C++, κ.α.)</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: .NET Bug - DataGridView με BindingList</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/37254.aspx</link><pubDate>Tue, 13 Nov 2007 00:50:45 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:37254</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/37254.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=37254</wfw:commentRss><description>&lt;P&gt;Δες μήπως μπορείς να βγάλεις άκρη με αυτό: &lt;A href="http://windowsclient.net/articles//asyncbindinglist.aspx"&gt;http://windowsclient.net/articles//asyncbindinglist.aspx&lt;/A&gt;&lt;/P&gt;</description></item><item><title>Απ: .NET Bug - DataGridView με BindingList</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/37253.aspx</link><pubDate>Tue, 13 Nov 2007 00:45:32 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:37253</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/37253.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=37253</wfw:commentRss><description>&lt;P&gt;Σύμφωνα με αυτά που λέει στο connect, δεν υπάρχει ελπίδα να βρεις κάποιο fix. Ωστόσο, εφ' όσον όμως χτυπάει όταν αλλάζεις το BindingList από άλλο thread, γιατί δεν γυρίζεις στο thread του UI πριν το αλλάξεις; Βαβούρα θα μου πεις, αλλά δεν βλέπω άλλο workaround.&lt;/P&gt;</description></item><item><title>Απ: .NET Bug - DataGridView με BindingList</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/37251.aspx</link><pubDate>Tue, 13 Nov 2007 00:36:08 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:37251</guid><dc:creator>Dimitris Papadimitriou</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/37251.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=37251</wfw:commentRss><description>Κανείς...;</description></item><item><title>.NET Bug - DataGridView με BindingList</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/37139.aspx</link><pubDate>Fri, 09 Nov 2007 18:45:25 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:37139</guid><dc:creator>Dimitris Papadimitriou</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/37139.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=37139</wfw:commentRss><description>&lt;p&gt;Liono καλεί το μάτι της thandera. Η databinding φόρμα κινδυνέυει!!! Thunder, thunder.... thundercats... ΟΟΟΟΟΟΟΟΟΟΟΟΟΟ!!!!&amp;nbsp;&lt;/p&gt;&lt;p&gt;Είπα κι εγώ να ασχοληθώ με το σπορ του databinding... και έπεσα σε bug του .NET!&lt;/p&gt;&lt;p&gt;&lt;a href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=117148&amp;amp;wa=wsignin1.0" target="_blank"&gt;https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=117148&amp;amp;wa=wsignin1.0&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Το πρόβλημα είναι το εξής: Έχω ένα BindingList&amp;lt;myObject&amp;gt; ορισμένο ως data source ενός DataGridView. Όταν το list αλλάζει από άλλο thread, το datagridview πιάνει το event από μόνο του και ενημερώνει τον εαυτό του. Δεν το κάνει όμως αυτό χρησιμοποιώντας την Invoke ή BeginInvoke, αλλά προσπαθεί να το κάνει απευθείας. Αυτό βέβαια προκαλεί &lt;span&gt;"Cross-thread operation not valid" exception.&lt;/span&gt; &lt;/p&gt;&lt;p&gt;Προς το παρόν το workaround που βρήκα (καθώς δεν υπάρχει κάποιο workaround στο παραπάνω link) είναι να χρησιμοποιήσω το παλαιότερο DataGrid αντί του DataGridView. Είναι αρκετά άσχημο όμως και επίσης δεν θέλω να χρησιμοποιήσω κάποιο third-party grid (π.χ. Infragistics).&lt;/p&gt;&lt;p&gt;Λέτε να υπάρχει κάποια άλλη λύση;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>