www.webdeveloper.com
Results 1 to 4 of 4

Thread: DataGrid Grouping / Sorting

  1. #1
    Join Date
    Jul 2004
    Posts
    54

    DataGrid Grouping / Sorting

    Hi all
    We're looking to move to ASP.NET from ASP and migrate our web-app over. However, we've come up against a major stumbling block already - grouping & sorting.

    Whilst with VS-2005 can sort, it can't group therefore requiring code modification or the purchase of a component.

    Essentially, what we require is the ability to group, the the ability to dynamically sort within the group. All of the examples we've seen so far loose the grouping once you sort.

    Group1
    -----item 1 --- detail 1
    -----item 2 --- detail 2
    Group2
    -----item 3 --- detail 1
    -----item 6 --- detail 2
    Group3
    -----item 7 --- detail 1
    -----item 4 --- detail 2

    apply DESC sort on Item column
    Group1
    -----item 2 --- detail 1
    -----item 1 --- detail 2
    Group2
    -----item 6 --- detail 1
    -----item 3 --- detail 2
    Group3
    -----item 7 --- detail 1
    -----item 4 --- detail 2

    Any assistance would be greatly appreciated.
    Thanks
    C.

  2. #2
    Join Date
    May 2003
    Location
    Between Baltimore and DC
    Posts
    3,579
    How are you filling up the datagrid?

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint] | twitter | linkedin | http://www.pascarello.com

  3. #3
    Join Date
    Jul 2004
    Posts
    54
    Hi,
    Using an SQL connection.
    Thanks.
    C.

  4. #4
    Join Date
    May 2003
    Location
    Between Baltimore and DC
    Posts
    3,579
    An easy solution would be to do another query for a sort and groupby attached. Not elegant!

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint] | twitter | linkedin | http://www.pascarello.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles