如何在DBGRIDEH中双击一条记录,可以删除该条记录?

解决方案 »

  1.   

    dbgrid ondbclick
    中dbgrid.datasource.dataset.delete;
      

  2.   

    程序运行时显示错误:
    show message 
    'table is read only' 
    process stopped
      

  3.   

    Query1.Delete;
    Query1.close;
    Query1.open;
      

  4.   

    你先把它改成不是只读的啊
    DBGrid.readonly:=false;
      

  5.   

    DBGrid.readonly:=false; 已经设置好了,
    程序运行时显示错误:
    project project2.exe raised exception class EDBEngineError with message'Table is
    read only',process stoppen.use Step or run to continue大意是数据库中的表是只读的。不能在程序中直接修改,要在外部设置表是可以读写的。
    请给出解决方法,是在哪里改?谢谢
      

  6.   

    检查TABLE的EXCLUSIVE、READONLY属性,DBGRID连的几个表?