如何刷新的DBGrid没有在delphi关闭和打开的数据集? [英] How to refresh dbgrid without close and open dataset in delphi?
本文介绍了如何刷新的DBGrid没有在delphi关闭和打开的数据集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要刷新的DBGrid不断,实时。关闭和打开的数据集工作正常,但闪烁的DBGrid。我能做些什么,以避免这种情况?
I need to refresh dbgrid constantly, in real time. Close and open dataset works fine, but blink the dbgrid. What can I do to avoid this?
我希望像阿贾克斯的解决方案,该更新只在必要的。
I'd like a solution like Ajax, that update only the necessary.
感谢
推荐答案
您是否尝试过使用禁止 - &功放; EnableControls
DataSet.DisableControls;
try
DataSet.Close;
DataSet.Open;
finally
DataSet.EnableControls;
end;
此外,应当有可能只是调用,而不是关闭和开启DataSet.Refresh得到相同的结果。
Furthermore, it should be possible to just call DataSet.Refresh instead of closing and opening to get the same result.
这篇关于如何刷新的DBGrid没有在delphi关闭和打开的数据集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文