I
import
Unregistered / Unconfirmed
GUEST, unregistred user!
因为InterBase对于每一个更新,InterBase都会更新屏幕窗口的显示,因此如果你使用GotoKey或者lookups的时候,断开数据控件的连接速度就会很快!例如: dbLookupList1.Enabled := false;
dbGrid1.DataSource := nil;
dbLookupList1.Enabled := false;
with table1 do
begin
setkey;
fields[0].AsString := edit1.text;
DisableControls;
GotoKey;
EnableControls;
end;
dbLookupList1.Enabled := true;
dbgrid1.DataSource := DataSource1;
LockWindowUpdate(0);
dbGrid1.DataSource := nil;
dbLookupList1.Enabled := false;
with table1 do
begin
setkey;
fields[0].AsString := edit1.text;
DisableControls;
GotoKey;
EnableControls;
end;
dbLookupList1.Enabled := true;
dbgrid1.DataSource := DataSource1;
LockWindowUpdate(0);