I would want to be able to display those automatically generated SQL code on the database web page, when doing a primary sorting on a specific column in web grid.
For Instance, if you click on any column header on a database web page, the selected column will be sorted as a primary sorting column and then display the result in ascending or descending order.
My question is, would it be possible to retrieve those automatically generated SQL code behind the sorting process and display them onto the web page ? can't seems too find any resource about this. Any reading that can be used as a reference will be much appreciated.