User TQuery,then the problem will go

解决方案 »

  1.   

    你是否使用Delphi5,这是5的一个BUG,请使用6
      

  2.   

    谢谢louislingjjw(云意)的答复,我知道用query可以解决,但这不是我的问题所在啊。我是指用table的情况下怎么解决。
    lillin(wenxu),既然是delphi的bug,看来是没有办法了?
      

  3.   

    你可以先把DBGrid.Enalbe设为False查询结束后,再恢复
      

  4.   


    CachedUpdates置为False
    加上AutoRrefresh置为True
      

  5.   

    试过了,可还是不行啊。
    以下是查询用的代码,应该没什么问题吧?
    with table1 do
                    begin
                    indexfieldnames:='NAME';
                    if not findkey([combobox2.text]) then
                    application.MessageBox ('not find it','information',mb_ok);
                    end;查询后,dbgrid中显示就多了一行,就是要查询的记录。dbgrid中的三角箭头指向这一行。
    可明明这条记录在上面啊,为什么下面又多了一行同样的记录?