Click here to Skip to main content
15,886,823 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
Hi

We want to sort the grid view with other columns other than group by which will sort the group by rows first and then the detail level rows. Currently the default sorting will sort the group by column and then sorts the other columns with in the group by columns.

For, eg.. Our resultset is having 3 columns named CompanyName, Investment Date and Investment amount and the results are group by CompanyName in the grid view. When we want to sort the grid using InvestmentAmount, it is sorting the companies first using company name and then the investment amount are getting sorted only in the detail level, whereas we want to sort the group by row..ie companies by Investment Amount. Please let me know if you need more clarifications.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900