Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I have a datatable that is to be exported to an excel. But the requirement is that the user should be able to set the order of the column from UI using a dropdown just like in case of a "view" of a list in MOSS 2007, where user can select the column and then choose the ordering using a dropdown.

Please suggest some fix for this.
Posted

1 solution

hi,
Instead of java script use the server side code to do that.

In code when you export to excel at that time take one table and copy the your columns on that table as user want
 
Share this answer
 

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