General information
Category:
The Mere Mortals .NET Framework
Here's the stack trace from the Call Stack window. The Output window displays
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in System.Windows.Forms.dll
This does not throw an exception up to the application, as I guess it's handled. The problem is that immediately after I add a new row, when the I use the NavigateData() method to go to the mmNavigate.Last position, the current row does not change. When I look at
bizObj.GetRowCount(ds.Tables[dataTableName].DefaultView), the count includes the new record.
It looks like the error is actually generated in on line 313
bindingContext[dv].Position = dv.Count - 1;
with dv.Count = 3. When this line is executed, the exception appears in the Output window and bindingContext[dv].Position remains 0.
> Mere Mortals Framework Windows Forms 2005.dll!OakLeaf.MM.Main.Windows.Forms.mmBindingStrategyBase.NavigateData(System.Windows.Forms.BindingContext bindingContext = {System.Windows.Forms.BindingContext}, OakLeaf.MM.Main.Windows.Forms.ImmBinding control = {Text = "Default"}, System.Data.DataView dv = {System.Data.DataView}, OakLeaf.MM.Main.Windows.Forms.mmNavigate navPosition = Last) Line 315 C#
Mere Mortals Framework Windows Forms 2005.dll!OakLeaf.MM.Main.Windows.Forms.mmBindingStrategyBase.NavigateData(System.Windows.Forms.BindingContext bindingContext = {System.Windows.Forms.BindingContext}, OakLeaf.MM.Main.Windows.Forms.ImmBinding control = {Text = "Default"}, OakLeaf.MM.Main.Business.mmBusinessObject bizObj = {Ambit.POS.Business.StatementGroups}, string dataTableName = "StatementGroups", string dataViewName = "DefaultView", OakLeaf.MM.Main.Windows.Forms.mmNavigate navPosition = Last) Line 171 + 0x43 bytes C#
Mere Mortals Framework Windows Forms 2005.dll!OakLeaf.MM.Main.Windows.Forms.mmBindingStrategySimple.NavigateData(System.Windows.Forms.BindingContext bindingContext = {System.Windows.Forms.BindingContext}, OakLeaf.MM.Main.Windows.Forms.ImmBindingSimple mmControl = {Text = "Default"}, OakLeaf.MM.Main.Business.mmBusinessObject bizObj = {Ambit.POS.Business.StatementGroups}, OakLeaf.MM.Main.Windows.Forms.mmNavigate navPosition = Last) Line 832 + 0x15 bytes C#
Mere Mortals Framework Windows Forms 2005.dll!OakLeaf.MM.Main.Windows.Forms.mmBindingStrategySimple.NavigateData(System.Windows.Forms.BindingContext bindingContext = {System.Windows.Forms.BindingContext}, OakLeaf.MM.Main.Windows.Forms.ImmBindingSimple mmControl = {Text = "Default"}, OakLeaf.MM.Main.Business.mmBaseBusinessObject bizObj = {Ambit.POS.Business.StatementGroups}, OakLeaf.MM.Main.Windows.Forms.mmNavigate navPosition = Last) Line 791 + 0x2d bytes C#
Mere Mortals Framework Windows Forms 2005.dll!OakLeaf.MM.Main.Windows.Forms.mmTextBox.NavigateData(System.Windows.Forms.BindingContext bindingContext = {System.Windows.Forms.BindingContext}, OakLeaf.MM.Main.Business.mmBaseBusinessObject bizObj = {Ambit.POS.Business.StatementGroups}, OakLeaf.MM.Main.Windows.Forms.mmNavigate navPosition = Last) Line 430 + 0x10 bytes C#
ATLibMM.dll!ATLib.Controls.ambitNavigator.OnNewButtonPressed(object sender = {OakLeaf.MM.Main.Windows.Forms.mmNavigationToolStrip, Name: ntsMain, Items: 25}) Line 578 + 0x24 bytes C#
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only