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