如何向dbgrid中连续添加多行以后,一起向数据库中保存?

解决方案 »

  1.   

    使用批处理模式
    不过跟dbgrid无关
      

  2.   

    批量提交:CursorType-------ctDynamic
    LockType--------ltBatchOptimistic提交adotable1.UpdateBatch;
    取消adotable1.cancelbatch;
      

  3.   

    用ado的话
    LockType--------ltBatchOptimistic
      

  4.   

    CursorType-------ctDynamic
    LockType--------ltBatchOptimistic提交adotable1.UpdateBatch;
    取消adotable1.cancelbatch;
      

  5.   

    CursorType-------ctDynamic
    LockType--------ltBatchOptimistic提交adotable1.UpdateBatch;
    取消adotable1.cancelbatch;
      

  6.   

    CursorType-------ctDynamic
    LockType--------ltBatchOptimistic提交adotable1.UpdateBatch;
    取消adotable1.cancelbatch;
    up
      

  7.   

    就是用缓存更新了,不过是和DbGrid无关,与DBGrid.DataSource.DataSet有关。