Dynamically add sort to appearing - disappearing columns of a grid

Discussion in 'ASP .Net Building Controls' started by jonefer, May 21, 2007.

  1. jonefer

    jonefer Guest

    I have columns in a Gridview control that will consistently be named the same
    thing, although they may disappear and appear based on the dataset.

    How can I create sorts for those columns when they appear?

    I saw the mention of the 'OnCreateAutoGeneratedColumn event' and thought
    that would be a good place to start but can't google any documentation other
    than the reference to that post in the newsgroup.
    jonefer, May 21, 2007
    #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. =?Utf-8?B?dmFuZGls?=
    Replies:
    2
    Views:
    1,180
    Eliyahu Goldin
    Jan 25, 2007
  2. Roger Frei

    Adding columns dynamically to data grid

    Roger Frei, Jun 15, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    2,160
    Roger Frei
    Jun 15, 2007
  3. Sehboo

    Sort by two columns in grid

    Sehboo, Sep 1, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    429
    Eliyahu Goldin
    Sep 2, 2007
  4. Ahmet Gunes

    How to add columns to a grid dynamically at run time?

    Ahmet Gunes, Sep 15, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    205
    Ravikanth[MVP]
    Sep 15, 2003
  5. Navin
    Replies:
    1
    Views:
    674
    Ken Schaefer
    Sep 9, 2003
Loading...

Share This Page