﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Error "There are no rows in the current data table.  An edit is not allowed."</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 17 Jun 2026 03:17:13 GMT</lastBuildDate><ttl>20</ttl><item><title>Error "There are no rows in the current data table.  An edit is not allowed."</title><link>http://forum.strataframe.net/FindPost29250.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;On editing from the form, I get a message "There are no rows in the current data table.&amp;nbsp; An edit is not allowed." It is a SF message, not of mine.&lt;br/&gt;&lt;br/&gt;(There are no rows in the current data table.&amp;nbsp; An edit is not allowed.&lt;br/&gt;&amp;nbsp;&amp;nbsp; à MicroFour.StrataFrame.Business.BusinessLayer.Edit(Boolean CheckSecurity)&lt;br/&gt;&amp;nbsp;&amp;nbsp; à MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.Edit(Boolean CheckSecurity)&lt;br/&gt;&amp;nbsp;&amp;nbsp; à MicroFour.StrataFrame.UI.Windows.Forms.MaintenanceFormToolStrip.cmdEdit_Click(Object sender, EventArgs e)&lt;br/&gt;...)&lt;br/&gt;&lt;br/&gt;After validating the message, I can edit and save.&lt;br/&gt;&lt;br/&gt;On a maintenance form, I've 3 BO. The IncludeInFormEditType property is set to DeterminedByBusinessObject. &lt;br/&gt;The Primary BO is set on IncludeInFormEdit = True, the 2 other one are set to False. Only the primary BO is set to ManageUIReadOnlyState = True.&lt;br/&gt;One of these BO is a child of the primary BO (ChildAutoFilter is set to MatchCurrentRow). There is a ChildFormDialog on this form, with BO translations for the primary and its child.&lt;br/&gt;&lt;strong&gt;The only BO with no row is neither the primary, neither its child (the third one...)&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;The code for the EditingStateChanged for the form is in a Try/Catch, and the catch is never raised. Same thing with a try/catch on EditingStateChanged of each BO.&lt;br/&gt;&lt;br/&gt;What could be the origin of this message? How could I trap it?</description><pubDate>Mon, 27 Dec 2010 04:46:45 GMT</pubDate><dc:creator>Michel Levy</dc:creator></item><item><title>RE: Error "There are no rows in the current data table.  An edit is not allowed."</title><link>http://forum.strataframe.net/FindPost29262.aspx</link><description>Good to know that, Michel.&lt;br/&gt;&lt;br/&gt;Yep, I do that all the time and then I try to break up the logic into small pieces and go 1 by 1 untill I can isolate where the issue is.</description><pubDate>Mon, 27 Dec 2010 04:46:45 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Error "There are no rows in the current data table.  An edit is not allowed."</title><link>http://forum.strataframe.net/FindPost29257.aspx</link><description>Thanks Ivan&lt;br/&gt;&lt;br/&gt;I preffered to find a workaround, because I was unsure of the debugging between VS2008 and VS2010. &lt;br/&gt;&lt;br/&gt;Begining the Edit process, I save an empty snapshot of the empty BO, add a "dummy" new row, and at the end of the saving process of an edit, I restore the empty&amp;nbsp;snapshot. Yes, I know, it's not very pretty :Whistling: ... but it works.&lt;br/&gt;&lt;br/&gt;Before going deeper in SF code, I want to verify the problem on a more simple form, without all this confuse code I wrote.&lt;br/&gt;&lt;br/&gt;Thanks again, and merry Christmas</description><pubDate>Sat, 25 Dec 2010 11:13:42 GMT</pubDate><dc:creator>Michel Levy</dc:creator></item><item><title>RE: Error "There are no rows in the current data table.  An edit is not allowed."</title><link>http://forum.strataframe.net/FindPost29255.aspx</link><description>Hi Michel.&lt;br/&gt;&lt;br/&gt;Probably this is not the only way, but it is one that will surely show you where the issue is.&lt;br/&gt;&lt;br/&gt;For the VS 2010 thing, I wouldn't think it would be a problem, as long as you are using VS 2010, I guess.&lt;br/&gt;&lt;br/&gt;Merry Christmas! :)</description><pubDate>Fri, 24 Dec 2010 11:46:29 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Error "There are no rows in the current data table.  An edit is not allowed."</title><link>http://forum.strataframe.net/FindPost29252.aspx</link><description>Hi Ivan,&lt;br/&gt;&lt;br/&gt;no, not yet. Do you think that's the only way to determine where this exception comes from?&lt;br/&gt;&lt;br/&gt;I didn't want to debug SF source code :unsure: but everything needs a first time... I'll&amp;nbsp;build the SF project source&amp;nbsp;in debug mode and go on.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Arghh! :angry: SF source code is in VS2010, and this project is on VS2008. Do you think I need to upgrade my project in VS20010, for debugging in SF source code?</description><pubDate>Fri, 24 Dec 2010 10:11:57 GMT</pubDate><dc:creator>Michel Levy</dc:creator></item><item><title>RE: Error "There are no rows in the current data table.  An edit is not allowed."</title><link>http://forum.strataframe.net/FindPost29251.aspx</link><description>Have you tried debugging and steping into SF source code to determine where you get the exception?</description><pubDate>Fri, 24 Dec 2010 08:49:36 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>