using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace 数据库访问控件__主__详细窗体
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void 客户BindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
this.Validate();
this.客户BindingSource.EndEdit();
this.tableAdapterManager.UpdateAll(this.northwindDataSet);
}
private void Form1_Load(object sender, EventArgs e)
{
// TODO: 这行代码将数据加载到表“northwindDataSet.订单明细”中。您可以根据需要移动或删除它。
this.订单明细TableAdapter.Fill(this.northwindDataSet.订单明细);
// TODO: 这行代码将数据加载到表“northwindDataSet.订单”中。您可以根据需要移动或删除它。
this.订单TableAdapter.Fill(this.northwindDataSet.订单);
// TODO: 这行代码将数据加载到表“northwindDataSet.客户”中。您可以根据需要移动或删除它。
this.客户TableAdapter.Fill(this.northwindDataSet.客户);
}
}
}
数据库访问控件--主——详细窗体
最新推荐文章于 2020-06-26 16:20:24 发布