Doing some further work on this. Beta 2 has a new control called BindingNavigator that should do most of the work of creating a VCR type control to move through records. Microsoft documentations says add BindingNavigator and BindingSource controls to the form and then use the following sample code:
' Load the Customers result set into the DataSet.
Dim ds As New DataSet("Northwind Customers")
ds.Load( _
reader, _
LoadOption.OverwriteRow, _
New String() {"Customers"})
' Assign the DataSet as the DataSource for the BindingSource.
Me.customersBindingSource.DataSource = ds
' Bind the CompanyName field to the TextBox control.
Me.companyNameTextBox.DataBindings.Add( _
New Binding( _
"Text", _
Me.customersBindingSource, _
"CompanyName", _
True))
Control then adds icons to screen and handles data navigation. Nice - if i can get it to work!
LLBLGen does not produce a dataset - so in trying to create one with the following code:
dim ds as DataSet=New DataSet
ds.Tables.Add("Mortgages")
BindingSource1.DataSource=ds
editMortgageId.DataBindings.Add("Text", BindingSource1, "MortgageId")
Where Mortgages is a TypedView. Code compiles but fails on the last line where I says "Canot bind to the property or column "MortgageId" on the DataSource. Parameter name: dataMember". Any ideas of how I can make this work?