Groups | Blog | Home
all groups > asp.net > february 2006 >

asp.net : Default sort column and order in Gridview?



Daves
2/25/2006 9:38:18 PM
I have a gridview displaying News items and fetches the data through a
(little complicated) sql stored procedure... The sorting seems to be done in
the gridview since there is no sorting implementation in the stored proc
(well actually it is sorted by DateIn DESC by default but still the gridview
by default displays the items as sorted by DateIn ASC by default!!). The
user can then use the gridview's built in sort function to sort after other
fields.

Is there any way to make the Gridview sort the items by DateIn DESC by
default?

Daves
2/25/2006 9:56:57 PM
sorry folks,
it turns out my stored proc was not correct, when ORDER BY DateIn DESC was
put in correct place the gridview correctly sorts it...

[quoted text, click to view]

Budd NO[at]SPAM ASP.net
2/26/2006 12:00:00 AM

"Daves" <dbspam@simnet.is> ¼¶¼g©ó¶l¥ó·s»D:uoTcoZlOGHA.2088@tk2msftngp13.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button