molla2005b Posted January 11, 2022 Share Posted January 11, 2022 hi after sort a grid by clicking on a column I want to exit columns sort and back to query sort (order by field) with out need to close and open form again thanks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 11, 2022 Share Posted January 11, 2022 2 hours ago, molla2005b said: I want to exit columns sort and back to query sort (order by field) with out need to close and open form again Hello, How do you reopen the dataset? Quote Link to comment Share on other sites More sharing options...
molla2005b Posted January 11, 2022 Author Share Posted January 11, 2022 With Qry do begin Close; SQL.Text:='Select ...'+where + order by ... Open; end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 11, 2022 Share Posted January 11, 2022 3 minutes ago, molla2005b said: With... Try this approach: With Qry do begin Close; UniDBGrid1.JSInterface.JSCall('getStore().sorters.clear', []); //<---------- SQL.Text:='Select ...'+where + order by ... Open; end; Quote Link to comment Share on other sites More sharing options...
molla2005b Posted January 11, 2022 Author Share Posted January 11, 2022 thank you very much .now we use this as a helper function. It is will we helpful if added as grid method TUniDBGridHelper = class helper for TUniDBGrid procedure ClearSort(); end; Quote Link to comment Share on other sites More sharing options...
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.