天天看点

使用DataGridView添加数据源,同步到数据库

private void btnUpdate_Click(object sender, EventArgs e)
         {
             SqlCommandBuilder scb = new SqlCommandBuilder(this.dataInfoTableAdapter.Adapter);
             scb.DataAdapter.Update(this.personalserverDataSet1.DataInfo);


         }