Exemplo n.º 1
0
 private void bt_save_Click(object sender, EventArgs e)
 {
     if (object.Equals(null, dt_ggdy.GetChanges()))
     {
         return;
     }
     xtbiz.Update_Table(dt_ggdy, "select ID,PageName,PaperName,PageWidth,PageHeight,MarginTop,MarginLeft,MarginRight,MarginBottom,PagePrinter,sm,tybz from xt_ggdy");
     MessageBox.Show("保存成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
     dt_ggdy             = xtbiz.Get_All_Xt_ggdy();
     dgv_ggdy.DataSource = dt_ggdy;
 }