<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Deleting Objects</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Deleting Objects</description>
  <pubDate>Wed, 29 Jul 2026 10:06:17 -700</pubDate>
  <lastBuildDate>Tue, 30 Nov 2010 02:59:57 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2306</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Deleting Objects : Thank you all for encouraging...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2306&amp;PID=9273#9273</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=641" rel="nofollow">amourrashid</a><br /><strong>Subject:</strong> 2306<br /><strong>Posted:</strong> 30-Nov-2010 at 2:59am<br /><br />Thank you all for encouraging me.<br>&nbsp;&nbsp;&nbsp;&nbsp; Actually what I have concluded is that DevForce seems more geared to WPF and Silverlight. This is undeniable. My solution is in Windows forms where even the examples are very scarce nowadays.<br><br>I will try to contact devexpress where I have a universal subscription and they respond very quickly.<br><br>Thank you all.<br>]]>
   </description>
   <pubDate>Tue, 30 Nov 2010 02:59:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2306&amp;PID=9273#9273</guid>
  </item> 
  <item>
   <title>Deleting Objects : Hi amourrashid,  Sorry it took...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2306&amp;PID=9194#9194</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2306<br /><strong>Posted:</strong> 22-Nov-2010 at 10:31am<br /><br />Hi amourrashid,<DIV>&nbsp;</DIV><DIV>Sorry it took long to get back to you.</DIV><DIV>&nbsp;</DIV><DIV>Like jsobell mentioned, it doesn't look like you are implementing OnPropertyChanged.</DIV><DIV>&nbsp;</DIV><DIV>I'd suggest having an ObservableCollection&lt;Contracts&gt; so you can&nbsp;add support for PropertyChanged&nbsp;in your app.</DIV><DIV>&nbsp;</DIV><DIV>You will find a few&nbsp;examples in our <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/" target="_blank">DevForce Resource Center</A> (like in&nbsp;<a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/Code_YourFirstDevForceApplicati&#111;n" target="_blank">here</A> and <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/Code_Sample_Tour_DevForce_WPF_Part_2" target="_blank">here</A>) that make use of the PropertyChanged event.</DIV><DIV>&nbsp;</DIV><DIV>Regards,</DIV><DIV>&nbsp;&nbsp; sbelini.</DIV>]]>
   </description>
   <pubDate>Mon, 22 Nov 2010 10:31:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2306&amp;PID=9194#9194</guid>
  </item> 
  <item>
   <title>Deleting Objects : These forums are for the free...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2306&amp;PID=9187#9187</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=485" rel="nofollow">jsobell</a><br /><strong>Subject:</strong> 2306<br /><strong>Posted:</strong> 22-Nov-2010 at 1:16am<br /><br />These forums are for the free product, and when they are busy responding to registered users it sometimes gets quiet on the 'free advice' front.<DIV>Your problem is third party control related and not specific to DevForce, so perhaps you should try posting your question on the DevExpress forums. The handling of the entities, cached or not, is completely standard in DevForce, as they are simply standard .NET objects. If you have the problem here you will also have it with RIA (only it will probably be much harder to solve).</DIV><DIV>I notice in your code that you never save the collection of entities to a local collection, so I don't understand how you are ever calling the INotifyPropertyChanged on&nbsp;that results collection.</DIV><DIV>&nbsp;</DIV><DIV>Look at some examples, read the sample code supplied, and resolve what appears to be a pretty simple problem yourself. As I've always found, solving your own problem in 30mins is quicker than waiting an indeterminate time for support response.</DIV>]]>
   </description>
   <pubDate>Mon, 22 Nov 2010 01:16:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2306&amp;PID=9187#9187</guid>
  </item> 
  <item>
   <title>Deleting Objects : A total disappointment.I have...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2306&amp;PID=9186#9186</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=641" rel="nofollow">amourrashid</a><br /><strong>Subject:</strong> 2306<br /><strong>Posted:</strong> 21-Nov-2010 at 10:59pm<br /><br />A total disappointment.<br><br>I have been trying to convince my manager to go with devforce but there are still things that set me down.<br><br>It is really painful. The support......<br>]]>
   </description>
   <pubDate>Sun, 21 Nov 2010 22:59:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2306&amp;PID=9186#9186</guid>
  </item> 
  <item>
   <title>Deleting Objects : Thanks, I have an XtraGrid that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2306&amp;PID=9132#9132</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=641" rel="nofollow">amourrashid</a><br /><strong>Subject:</strong> 2306<br /><strong>Posted:</strong> 16-Nov-2010 at 5:41am<br /><br />Thanks,<br>&nbsp;&nbsp; I have an XtraGrid that is bound to a binding Source.<br>When the form loads I call something like this<br><br>var query=_manager.Contracts;<br>var op=query.ExecuteAsync();<br>op.Completed+=op_Completed;<br><br><br><br>And the op_Completed is like this<br><br>void op_Completed(object sender,EntityQueriedEventArgs&lt;Contract&gt; e)<br>{<br><br>if(e.IsCompleted)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp; contractsBindingSource.DataSource=e.Results;<br>}<br><br><br>}<br><br>However I tried also to use List&lt;Contract&gt; and the same it does not work.<br><br>The Item gets geleted but the XtraGrid does not refresh and the Items just remains.<br><br>Thanks.<br>]]>
   </description>
   <pubDate>Tue, 16 Nov 2010 05:41:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2306&amp;PID=9132#9132</guid>
  </item> 
  <item>
   <title>Deleting Objects : It sounds like your grid is not...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2306&amp;PID=9125#9125</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=485" rel="nofollow">jsobell</a><br /><strong>Subject:</strong> 2306<br /><strong>Posted:</strong> 15-Nov-2010 at 3:11pm<br /><br />It sounds like your grid is not being informed of changes to its underlying dataset.<br>How have you bound the collection to the grid? If it's via a property, is that property an ObservableCollection, in which case it will update automatically, or is it a derived property of some sort in which case you'll have to raise the OnPropertyChanged event for that property.<br>I don't think this has anything to do with caching, and you can set the DefaultQueryStrategy to be DatasourceOnly if you want to prove it.<br><br>]]>
   </description>
   <pubDate>Mon, 15 Nov 2010 15:11:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2306&amp;PID=9125#9125</guid>
  </item> 
  <item>
   <title>Deleting Objects : Hello I have been playing around...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2306&amp;PID=9113#9113</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=641" rel="nofollow">amourrashid</a><br /><strong>Subject:</strong> 2306<br /><strong>Posted:</strong> 15-Nov-2010 at 6:25am<br /><br />Hello I have been playing around with IdeaBlade and many aspects appear straight but one thing that I don't understand why it is idesigned this way is the caching process.<br><br>I have a Contract table that has contract items as a mater detail relationship.<br><br>I have a form that displays a list of contracts in XtraGrid bound to bindingsource. When I try to delete a contract it gets deleted in the database but the list on the grid stays as it is. it is not updated. If I try to call contractBindingSource.ResetItems(false) I get an exception that the list is readonly.<br><br>The contractBindingSource.RemoveCurrent either does not work it gives an error. <br>So how can my Grid be in Sync with the EntityManager or how can I disable this caching stuff. I feel very frustrated coz I've tried every option I know.<br><br><br>This is what I do.<br><br>Contract _contract=contractBindingSource.Current as Contract;<br>_contract.EntityAspect.Delete();<br>//contractBindingSource.RemoveCurrent() raises an error<br>//_manager.RemoveEntity(_contract,true) has no effect<br>//contractBindingSource.ResetItems(false) raises error<br>_manager.SaveChanges();<br>_manager.AcceptChanges();<br><br>Now how can I refresh my cache?<br>Please If any one can help.<br>Thanks in advance.<br><br><br><br>]]>
   </description>
   <pubDate>Mon, 15 Nov 2010 06:25:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2306&amp;PID=9113#9113</guid>
  </item> 
 </channel>
</rss>