Remove datagrid col at runtime?

Discussion in 'ASP .Net' started by Chip, Dec 18, 2003.

  1. Chip

    Chip Guest

    I'm missing something. I'm trying to remove a column in a gridlist using the
    following syntax:

    grdList.Columns.Remove(grdList.Columns(0))

    All this does is screw up the formatting in the table. Column is still
    there.

    Chip
     
    Chip, Dec 18, 2003
    #1
    1. Advertising

  2. Chip

    Chip Guest

    Figured it out. It works if you remove the column BEFORE you bind the data.


    "Chip" <> wrote in message
    news:...
    > I'm missing something. I'm trying to remove a column in a gridlist using

    the
    > following syntax:
    >
    > grdList.Columns.Remove(grdList.Columns(0))
    >
    > All this does is screw up the formatting in the table. Column is still
    > there.
    >
    > Chip
    >
    >
     
    Chip, Dec 19, 2003
    #2
    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. Andy Eshtry
    Replies:
    0
    Views:
    646
    Andy Eshtry
    Mar 1, 2004
  2. Andy Eshtry
    Replies:
    0
    Views:
    340
    Andy Eshtry
    Mar 1, 2004
  3. Andy Eshtry
    Replies:
    0
    Views:
    186
    Andy Eshtry
    Mar 1, 2004
  4. Andy Eshtry
    Replies:
    0
    Views:
    171
    Andy Eshtry
    Mar 1, 2004
  5. Replies:
    8
    Views:
    240
    Eric Sosman
    Apr 20, 2013
Loading...

Share This Page