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. Advertising

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. sajvargs
    Replies:
    0
    Views:
    373
    sajvargs
    Feb 20, 2005
  2. DC
    Replies:
    2
    Views:
    600
  3. Andreas Klemt
    Replies:
    0
    Views:
    267
    Andreas Klemt
    Oct 8, 2003
  4. roberto
    Replies:
    1
    Views:
    214
    roberto
    Feb 17, 2005
  5. John Walsch
    Replies:
    0
    Views:
    189
    John Walsch
    Jul 9, 2004
Loading...

Share This Page