对话框关闭时刷新表单上的问题 [英] Refresh Issue on the form when the dialog closes
问题描述
我有一个表单(数据源为表A),我从中调用一个对话框,并输入一些参数,然后单击确定".该过程填充表A中的数据.
I have a form(for which the datasource is Table A ) from which i am calling a dialog and i enter few parameters and click on Ok. The process fills up data in Table A .
关闭对话框后,它确实填满了表格并且没有显示在表单中,我将不得不刷新表单(按F5).如何通过代码
Once i close the dialog, it does fill up the table and does not show in form , i will have to do a refresh the form(pressing F5 ) . how is this possible via Code
推荐答案
我已经对此进行了博客介绍,因此,这里还有一些有关如何刷新表单的数据源的见解:
I've blogged about this, so here's also some insight on how to refresh a form's DataSource:
http://devexpp.blogspot. com.br/2012/02/refresh-datasource-and-retain-position.html
基本上,您所需要做的就是调用 research()方法,但是还有一些技巧可以保留刷新的数据源的位置.
Basically, all you have to do is call the research() method, but there's also some tricks to retain the position of the refreshed DataSource.
这篇关于对话框关闭时刷新表单上的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!