if ()//这里如何去判断datagridview1是否发生变化 { DataTable dt = (DataTable)dgv_Data.DataSource;
string sql = "select MaterielRegiser_Number as 货料编号,MaterielRegiser_Name as 货料名称,MaterielRegiser_Model as 规格型号,MaterielRegiser_Unit as 单位 from MIS_MaterielRegiser"; oda = new OleDbDataAdapter(sql, ocnn); ocb = new OleDbCommandBuilder(oda); ocb.QuotePrefix = "["; ocb.QuoteSuffix = "]";