Sorting a datagrid with autogenerated columns

Discussion in 'ASP .Net Datagrid Control' started by MikeG, Jun 23, 2004.

  1. MikeG

    MikeG Guest

    I currently have a datagrid displaying data from an ADOMD cellset. I have to programmatically control the number and content of header rows to show the hierachy data from the cellset.
    I can leave the default column headers (column1 etc) in an extra header row and use these to initiate a sort on the bound dataview but would like to replace this preferably with a clickable icon, otherwise just exchanging the word sort for the innertext of the existing datagridlinkbutton.
    I have been unable to get either of these to work as the id is not available for the instance of the icon, and the cast to datagridlinkbutton is invalid so I can't get at the innerText to change.

    Help, am I missing something?

    Thanks in anticipation,

    Mike
     
    MikeG, Jun 23, 2004
    #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. MS
    Replies:
    1
    Views:
    428
  2. MS
    Replies:
    1
    Views:
    363
  3. Luis Esteban Valencia
    Replies:
    0
    Views:
    686
    Luis Esteban Valencia
    Jan 11, 2005
  4. John Walsch

    Autogenerated Datagrid columns rebinding problem on postback

    John Walsch, Jul 12, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    173
    John Walsch
    Jul 12, 2004
  5. John Walsch
    Replies:
    0
    Views:
    201
    John Walsch
    Jul 9, 2004
Loading...

Share This Page