如题

解决方案 »

  1.   

    dataadapter.update(dataset,"table") 就ok 了啊
      

  2.   

    conn.Open();   
        
        
      SqlCommand   comm   =   new   SqlCommand("select   *   from   Cfd",conn);   
      SqlDataAdapter   da   =   new   SqlDataAdapter(comm);   
        
        
      SqlCommandBuilder   sc   =   new   SqlCommandBuilder(da);   
        
        
      DataSet   ds   =   new   DataSet();   
        
        
      da.Fill(ds);   
        
        
      ds.Tables[0].Rows[0][1]   =   "aaa";   
        
        
      da.Update(ds);     
      

  3.   

    使用SqlDataAdapter,还有要构建SqlCommandBuilder,否则不会起作用。