﻿<?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 » Issues  » Error on Delete</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 14 Jun 2026 17:18:22 GMT</lastBuildDate><ttl>20</ttl><item><title>Error on Delete</title><link>http://forum.strataframe.net/FindPost298.aspx</link><description>When deleting the last record in a table I get an indexoutofrange exception.&amp;nbsp; Any Ideas.</description><pubDate>Tue, 13 Dec 2005 17:00:17 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: Error on Delete</title><link>http://forum.strataframe.net/FindPost318.aspx</link><description>No problem, you find it, I fix it :)</description><pubDate>Tue, 13 Dec 2005 17:00:17 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error on Delete</title><link>http://forum.strataframe.net/FindPost317.aspx</link><description>Works great,&amp;nbsp; Thank You.</description><pubDate>Tue, 13 Dec 2005 16:54:58 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: Error on Delete</title><link>http://forum.strataframe.net/FindPost316.aspx</link><description>Fixed it... looking through the back logs of our source control, nothing changed... the logic was just a little off under certain conditions, so the index was never reduced to the new last record.  Here's the DLL (follow the instructions in the Update Blog to get it installed) and the install will be rebuilt probably tomorrow.</description><pubDate>Tue, 13 Dec 2005 16:23:21 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error on Delete</title><link>http://forum.strataframe.net/FindPost310.aspx</link><description>Oh, I just spotted the stack trace where it said that the Index was 9... I'm going to try to reproduce it here in a second, but right now I've got the help documenation re-building the class library help.  I can't debug while it's working, so it will be a couple more minutes.</description><pubDate>Tue, 13 Dec 2005 13:31:17 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error on Delete</title><link>http://forum.strataframe.net/FindPost307.aspx</link><description>False</description><pubDate>Tue, 13 Dec 2005 13:08:05 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: Error on Delete</title><link>http://forum.strataframe.net/FindPost306.aspx</link><description>Is the ShowDeletedRows property on the business object True or False?</description><pubDate>Tue, 13 Dec 2005 12:55:38 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error on Delete</title><link>http://forum.strataframe.net/FindPost305.aspx</link><description>Here is the trace stack,&amp;nbsp; I am almost sure I messed something up I just don't know what it is.&lt;/P&gt;&lt;P&gt;BusinessLayerException&lt;BR&gt;&amp;nbsp;An error occurred while trying to delete the specified row.&lt;BR&gt;BusinessLayerException&lt;BR&gt;&amp;nbsp;An error occurred while refreshing the data from field 'SFCategoryBO.catdesc' to property 'Text' on control 'textbox1.'&lt;BR&gt;BusinessLayerException&lt;BR&gt;&amp;nbsp;An error occurred while refreshing property 'Text' to control 'textbox1'&lt;BR&gt;IndexOutOfRangeException&lt;BR&gt;&amp;nbsp;Index 9 is either negative or above rows count.&lt;/P&gt;&lt;P&gt;Source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : MicroFour StrataFrame Business&lt;/P&gt;&lt;P&gt;Stack Trace: &lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.DataView.GetElement(Int32 index)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.DataView.get_Item(Int32 recordIndex)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.get_CurrentRow()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at QuoteBOLib.SFCategoryBO.get_catdesc() in C:\SF\QuoteBOLib\QuoteBOLib\SFCategoryBO.Designer.cs:line 304&lt;BR&gt;&amp;nbsp;&amp;nbsp; at QuoteBOLib.SFCategoryBO.Field_catdesc_Descriptor.GetValue(Object component) in C:\SF\QuoteBOLib\QuoteBOLib\SFCategoryBO.Designer.cs:line 569&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.BindToObject.GetValue()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Binding.PushData(Boolean force)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Binding.ReadValue()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.RefreshValue(Control ControlToRefresh, String PropertyName)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.RefreshControl(IBusinessBindable ControlToRefresh, Boolean DataPresent)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.RefreshBoundControls()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.RaiseEditingStateChanged(EditingStateChangedEventArgs e, Boolean RefreshControls)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.SetEditingState(BusinessEditingState EditState, Boolean RefreshControls)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.DeleteByPrimaryKey(Object PrimaryKeyValue)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.DeleteCurrentRow(Boolean CheckSecurity, Boolean OnlyMarkAsDeleted)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.DeleteCurrentRow(Boolean OnlyMarkAsDeleted)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.MaintenanceFormToolStrip.cmdDelete_Click(Object sender, EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStrip.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;BR&gt;</description><pubDate>Tue, 13 Dec 2005 12:06:45 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: Error on Delete</title><link>http://forum.strataframe.net/FindPost300.aspx</link><description>Can you attach a screenshot of the red error window you're receiving?  It should have the stack trace on it, and that should help.</description><pubDate>Tue, 13 Dec 2005 11:33:12 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error on Delete</title><link>http://forum.strataframe.net/FindPost299.aspx</link><description>OK, I just went through trying to reproduce your error.  I started with 3 records in the business object and called DeleteCurrentRow on all 3 both by only marking them as deleted and by deleting them directly from the server.  Never got an IndexOutOfRangeException.  &lt;br&gt;
&lt;br&gt;
Is your business object's editing state Idle, Editing, or Adding?  While you gather me some more info on your scenario, I'm going to go look at the code and see if I can find find anything obvious.</description><pubDate>Tue, 13 Dec 2005 11:30:17 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>