ariopax Posted July 18, 2016 Posted July 18, 2016 Hi I have search form ,and set Sql for search in Run time.But in second time ,when open search form grid show with last state. the below pic is when search form open for second time However,I close and then open adoquery,and use below function procedure TFsearch.UniFormActivate(Sender: TObject); begin UniDBGrid1.DataSource.DataSet.Close; UniDBGrid1.DataSource.DataSet.Open; UniDBGrid1.Refresh; end; procedure TFsearch.UniFormShow(Sender: TObject); begin UniDBGrid1.Refresh; UniEdit1.SetFocus; end; Best Regards. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.