New Posts New Posts RSS Feed: A sorting of a GridView example
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

A sorting of a GridView example

 Post Reply Post Reply
Author
IdeaBlade View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 30-May-2007
Location: United States
Posts: 353
Post Options Post Options   Quote IdeaBlade Quote  Post ReplyReply Direct Link To This Post Topic: A sorting of a GridView example
    Posted: 16-Jul-2007 at 2:16pm
Perhaps, you can hook into the Sorting event of the GridView.
 
 
GridView.Sorting Event 
 
Occurs when the hyperlink to sort a column is clicked, but before the GridView control handles the sort operation.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

BTW, if you find that the DevForceDataSource can not implement some functionality that is possible in the ObjectDataSource, let me know, and I'll try to implement the missing functionality
Back to Top
Customer View Drop Down
Senior Member
Senior Member
Avatar
User Submitted Questions to Support

Joined: 30-May-2007
Location: United States
Posts: 260
Post Options Post Options   Quote Customer Quote  Post ReplyReply Direct Link To This Post Posted: 16-Jul-2007 at 2:16pm
I understand your sample but the problem is not in getting it to initially sort.  Its to get it to sort when I select a column header and toggle between asc/desc as I select the different headings.  Your example describes a hard coded sort that I can set as the default value.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down