I am trying to get the Chapter 26 sample code to run.
I am able to view data in both the local and server databases
When I press the
Synchronize button on the localform I get an errror on line 19:
Dim c As LocalCRMDataSet.CustomersRow = _
CType(CType(Me.CustomersBindingSource.CurrencyManager.Current, _
DataRowView).Row, _
LocalCRMDataSet.CustomersRow)
Can anyone help me with this?
System.IndexOutOfRangeException was unhandled by user code
Message="Index -1 does not have a value."
Source="System.Windows.Forms"
StackTrace:
at System.Windows.Forms.CurrencyManager.get_Item(Int3 2 index)
at System.Windows.Forms.CurrencyManager.get_Current()
at QuickCRM.LocalForm.CustomersBindingSource_CurrentC hanged(Object sender, EventArgs e) in C:\Users\Matt\Documents\Visual Studio 2008\Projects\229880 ch26_code\QuickCRM\LocalForm.
vb:line 19
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.BindingSource.OnCurrentChange d(EventArgs e)
at System.Windows.Forms.BindingSource.CurrencyManager _CurrentChanged(Object sender, EventArgs e)
at System.Windows.Forms.CurrencyManager.OnCurrentChan ged(EventArgs e)
InnerException: