判断datagridview控件数据是否变化,好更新成功后show("更新成功");
如果数据没有改变show("未有任何修改!");
conn.Open();
da = new SqlDataAdapter("SELECt * FROM db", conn);
SqlCommandBuilder cb = new SqlCommandBuilder(da);
ds = new DataSet();
da.Fill(ds, "tb1");
dataGridView1.DataSource = ds.Tables["tb1"];
da.Update(ds,"tb1");
求助,help!