Cerebrus
unread,Jun 4, 2009, 1:46:49 AM6/4/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Well, for starters, the GridView automatically appends the "ASC" and
"DESC" alternately to the SortExpression, based on the current
SortDirection. I'm not sure why you are trying to do this manually.
Secondly, there seems to be no reason to re-bind the GridView to a
sorted DataView when this is already done internally by the
Datasource.
Finally, I don't see you storing the Viewstate variable anywhere, just
accessing it.