<?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 Entities</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Deleting Entities</description>
  <pubDate>Thu, 23 Apr 2026 16:03:15 -700</pubDate>
  <lastBuildDate>Thu, 26 Nov 2009 22:23:07 -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=1569</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 Entities : Thank you very much;  I tried...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1569&amp;PID=5874#5874</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> 1569<br /><strong>Posted:</strong> 26-Nov-2009 at 10:23pm<br /><br />Thank you very much;<DIV>&nbsp; I tried that before&nbsp;and it actually it worked but I was&nbsp;not sure if that is the way it is supposed to be done. </DIV><DIV>And I have tested. It is OK.</DIV><DIV>Thanks again.</DIV>]]>
   </description>
   <pubDate>Thu, 26 Nov 2009 22:23:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1569&amp;PID=5874#5874</guid>
  </item> 
  <item>
   <title>Deleting Entities : Please consider this.. pseudocode...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1569&amp;PID=5873#5873</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=453" rel="nofollow">enterprisetoday</a><br /><strong>Subject:</strong> 1569<br /><strong>Posted:</strong> 26-Nov-2009 at 3:20pm<br /><br />Please consider this.. pseudocode of sorts...<br /><br /><br />if (e.KeyCode == Keys.Delete) <br /><br /> Entity myentity = gridView1.GetFocusedRow() as Entity;<br /> if myentity != null  && !EntityAspect.isnullentity<br /> <br /> DialogResult result = xtramessagebox.show(etc etc etc)<br /> <br /> if result == dialogresult.yes<br /> myentity.EntityAspect.Delete();<br /> bindingsource.RemoveCurrent();<br /><br /><br />where bindingsource is a private System.Windows.Forms.BindingSource<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]]>
   </description>
   <pubDate>Thu, 26 Nov 2009 15:20:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1569&amp;PID=5873#5873</guid>
  </item> 
  <item>
   <title>Deleting Entities : Hello Dear;   I am starting my...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1569&amp;PID=5871#5871</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> 1569<br /><strong>Posted:</strong> 26-Nov-2009 at 6:12am<br /><br />Hello Dear; <DIV>&nbsp;&nbsp;&nbsp; I am starting my development with DevForce. I am getting well along with it but I have come accross ascenario I would like guidance from any person having experience with DevForce.</DIV><DIV>&nbsp;</DIV><DIV>I have a form with controls bould to a BindingSource which i then bound <FONT size=2><FONT color=#000000 size=2>BindableList of entities. I can Adding and Editing without problems. However when I try to Delete Items with my Binding Navigator they still appear on the form.</FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>I use something like this </FONT></DIV><FONT size=2><FONT size=2><P>(contractBindingSource.Current </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>as</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Contract</FONT></FONT><FONT size=2>).Delete(); for a Contract which contains Facilities ( Entities in my System) and to delete a facility I call something like this (Using XtraGrid)</P><DIV></DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>private</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>void</FONT></FONT><FONT size=2> OnKeyDown(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>object</FONT></FONT><FONT size=2> sender, </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>KeyEventArgs</FONT></FONT><FONT size=2> e)</P><P>{</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (e.KeyCode == </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Keys</FONT></FONT><FONT size=2>.Delete)</P><P>{</P><P>(facilitiesBindingSource.Current </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>as</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>ContractFacility</FONT></FONT><FONT size=2>).Delete();</P><P>}</P><P>}</P><DIV></DIV><DIV></DIV><DIV>Please can anybody help me with this.</DIV></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Thu, 26 Nov 2009 06:12:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1569&amp;PID=5871#5871</guid>
  </item> 
 </channel>
</rss>