for I := 0 to FDMemTable1.Table.Rows.Count-1 do
begin
Memo1.Lines.Add(VarToStrdef(FDMemTable1.Table.Rows[i].ValueI[1],''));
end;
这个不会触发AfterScroll、BeforeScroll事件,要注意下FDMemTable1.Table.Rows[i].ValueI[0]这种只能读取,不能修改
上面的比下面这种传统方式快很多
FDMemTable1.DisableControls;
try
FDMemTable1.first;
while not FDMemTable1.eof do
begin
FDMemTable1.next;
end;
finally
FDMemTable1.EnableControls;
end;