Jump to content

UniDbGrid refresh


ariopax

Recommended Posts

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.

s1bk_1.jpg

the below pic is when search form open for second time

esb9_2.jpg

 
 
 
 
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...