<?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 : UserDeletingRow event doesn&#039;t fire</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : UserDeletingRow event doesn&#039;t fire</description>
  <pubDate>Thu, 11 Jun 2026 07:47:22 -700</pubDate>
  <lastBuildDate>Tue, 19 Feb 2008 12:25:47 -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=688</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>UserDeletingRow event doesn&#039;t fire : Ok, so diving even further in...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=688&amp;PID=2582#2582</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=90" rel="nofollow">DataMan</a><br /><strong>Subject:</strong> 688<br /><strong>Posted:</strong> 19-Feb-2008 at 12:25pm<br /><br /><P>Ok,&nbsp; so diving even further in I think I've answered my own question and this is interesting for new people to ideablade to get info on the subject.</P><DIV>What I've found is that you cannot chain the binding sources together and have the user be able to click on a row and hit the delete key.&nbsp; The relationship between parent and child is read-only therefore it doesn't work.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>The documentation in a readme.doc in the solution folder tells us that but in a round about way</DIV><DIV>&nbsp;</DIV><DIV>"<FONT face="Times New Roman" size=3>What is the difference between the two solutions in the “Orders on User Control - No Chaining” folder?<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Simply the mechanism by which adds and deletes are accomplished.<SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>In the “AddDeleteWithBNOnChildGridInUserControl” solution, a BindingNavigator is provided for the Orders grid, and its AddNewItem and DeleteItem buttons are used for adding and deleting Orders.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>In the “AddDeleteWithNewItemRowOnChildGridInUserControl” solution, the “NewItem” row at the bottom of the grid is enabled and is used for adding new Orders.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>To delete an Order, you select the row and press the <?:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:State w:st="&#111;n"><st1:place w:st="&#111;n">DEL</st1:place></st1:State> key."</FONT></DIV><DIV><FONT face="Times New Roman" size=3></FONT>&nbsp;</DIV><DIV>In&nbsp;the first example by&nbsp;chaining your binding sources&nbsp;you can't delete a row with the delete key,&nbsp; your users have to use the binding navigator.</DIV><DIV>&nbsp;</DIV><DIV>The solution that solved all my issues is:</DIV><DIV>&nbsp;</DIV><DIV>C:\Program Files\IdeaBlade DevForce\Instructional Units\200 Intermediate\Add-Delete On Child Grid\02 Code CSharp\Orders on User Control - No Chaining\AddDeleteWithNewItemRowOnChildGridInUserControl</DIV><DIV>&nbsp;</DIV><DIV>The answer was there I just had to find it.&nbsp; Hoping this saves someone else time.&nbsp; The developer guide on page 77 could be changed to say that if you don't chain your binding sources you can delete or something.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 19 Feb 2008 12:25:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=688&amp;PID=2582#2582</guid>
  </item> 
  <item>
   <title>UserDeletingRow event doesn&#039;t fire : So I found out the reason that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=688&amp;PID=2581#2581</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=90" rel="nofollow">DataMan</a><br /><strong>Subject:</strong> 688<br /><strong>Posted:</strong> 19-Feb-2008 at 9:18am<br /><br />So I found out the reason that the event does not fire is that the collection is read only due to the relationship of master detail being read only.&nbsp; If I create a new grid bound to the orderdetail table and not the linked binding source then the deleting event fires.<DIV>&nbsp;</DIV><DIV>I could filter this new grid and use it instead of the grid bound to the linked binding sources but that adds complexity.</DIV><DIV>&nbsp;</DIV><DIV>On page 77 of 498 of the developers guide is the following:&nbsp; "<FONT size=2>Accordingly, we leave it to the developer to write an </FONT><FONT face="Lucida C&#111;nsole,Lucida C&#111;nsole" size=1>OrderDetail </FONT><FONT size=2>setter if such a setter should exist at all. "</DIV><P>Can anyone give me an example of how to write a setter for order detail?&nbsp; After writing this setter will the bound grid let me delete and the functionality return to normal for selecting the rows and hitting the delete button.</P><DIV></DIV><DIV></DIV>Thanks<DIV></DIV></FONT>]]>
   </description>
   <pubDate>Tue, 19 Feb 2008 09:18:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=688&amp;PID=2581#2581</guid>
  </item> 
  <item>
   <title>UserDeletingRow event doesn&#039;t fire : So weird issue that I have, if...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=688&amp;PID=2572#2572</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=90" rel="nofollow">DataMan</a><br /><strong>Subject:</strong> 688<br /><strong>Posted:</strong> 15-Feb-2008 at 3:05pm<br /><br />So weird issue that I have, if I click on a row on a MS data grid and hit the delete key it doesn't do anything.<DIV>&nbsp;</DIV><DIV>I even opened the end_adddeletebusinessobjets instructional unit and I have exactly the same code.&nbsp; The example doesn't delete either?</DIV><DIV>&nbsp;</DIV><DIV>Putting a breakpoint in the <FONT size=2>UserDeletingRow shows that it doesn't get into the code.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Allowusertodeleterows is set to true</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Any suggestions?</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 15 Feb 2008 15:05:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=688&amp;PID=2572#2572</guid>
  </item> 
 </channel>
</rss>