Link to home
Start Free TrialLog in
Avatar of ravi_computer
ravi_computerFlag for India

asked on

Sort gridview column data in descending order

I have a gridiview on a page which populates data from a data source. It has a date column in it.While populating the data itself, I want the data in the gridview to be sorted in the descending order of date.Please let me know is it possible?


Avatar of QPR
QPR
Flag of New Zealand image

can you not specify this in your datasource?

select stuff, datefield
from myTable
order by datefield desc
ASKER CERTIFIED SOLUTION
Avatar of Nirmalan Nagenthiran
Nirmalan Nagenthiran
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ravi_computer

ASKER

nothing
nothing
nothing more