在本练习中,您将在附加练习14-2的产品维护表单中添加工具条,该工具条用于根据产品代码检索产品并检索所有产品。此外,您将在“单价”文本框中设置数据格式。
Public Class Form1
Private Sub ProductsBindingNavigatorSaveItem_Click(sender As Object, e As
EventArgs) Handles ProductsBindingNavigatorSaveItem.Click
Me.Validate()
Me.ProductsBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.MMABooksDataSet)
End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles
MyBase.Load
'TODO: This line of code loads data into the
'MMABooksDataSet.Products'table. You can move, or remove it, as
needed.
Me.ProductsTableAdapter.Fill(Me.MMABooksDataSet.Products)
End Sub
End Class