the state of records after Fill is Unchanged, you have to use DataTable's NewRow() and Rows.Add() to insert new records, then call Update

解决方案 »

  1.   

    this.sqlDataAdapter1.Fill(this.dataSet11.Tables[1]);
    SqlCommandBuilder custCB =new SqlCommandBuilder(sqlDataAdapter1) 
    this.sqlDataAdapter1.Update(this.dataSet11.Tables[1]);
    看看行不行
      

  2.   

    jn_sly(孤舟) 的方法已经试过了,但是行不通saucer(思归, .NET MVP) 说得有道理,但是我因为是Fill进很多的数据,
    这样一条条的加好像显得有点累赘啊,能够Fill后Update就最好了,实在不行
    看来也只能笨方法对付了
      

  3.   

    可以考虑用一下ImportRow的方法。
      

  4.   

    http://search.csdn.net/expert/topic/52/5201/2002/11/21/1195876.htm
    看看上面的贴之