datagrid problem

Discussion in 'ASP .Net' started by Jon, Aug 10, 2005.

  1. Jon

    Jon Guest

    I have a datagrid on my page that I add columns to programmatically and then
    bind it to a dataset. Works great. My problem is with sorting. I assign
    each column a sortexpression and set allowsorting to true, but when I click
    on the header link that would normally sort it calls the grid_ItemCommand
    and not grid_SortCommand. For some reason, it seems to think the header
    text is just another item. Any ideas on solving this?

    Thanks
    Jon
     
    Jon, Aug 10, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dave
    Replies:
    0
    Views:
    607
  2. BK Kim

    datagrid in datagrid

    BK Kim, Feb 23, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    741
    Alvin Bruney [MVP]
    Mar 2, 2004
  3. Amar
    Replies:
    0
    Views:
    648
  4. sajvargs
    Replies:
    0
    Views:
    467
    sajvargs
    Feb 20, 2005
  5. DC
    Replies:
    2
    Views:
    783
  6. Andreas Klemt
    Replies:
    0
    Views:
    491
    Andreas Klemt
    Oct 8, 2003
  7. roberto
    Replies:
    1
    Views:
    350
    roberto
    Feb 17, 2005
  8. John Walsch
    Replies:
    0
    Views:
    366
    John Walsch
    Jul 9, 2004
Loading...