Hide data grid cols?

Discussion in 'ASP .Net Datagrid Control' started by Eddie B., Oct 17, 2003.

  1. Eddie B.

    Eddie B. Guest

    Is there a way to hide datagrid columns? I need to still be able to getthe
    value also.

    Thanks,

    Eddie
    Eddie B., Oct 17, 2003
    #1
    1. Advertising

  2. Eddie B.

    S. Spurlock Guest

    Try something like this:

    if (showMe)
    {
    myDataGrid.Columns[2].Visible = true;
    }
    else
    {
    myDataGrid.Columns[2].Visible = false;
    }

    Scott

    "Eddie B." <> wrote in message
    news:...
    > Is there a way to hide datagrid columns? I need to still be able to

    getthe
    > value also.
    >
    > Thanks,
    >
    > Eddie
    >
    >
    S. Spurlock, Oct 17, 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. PontiMax
    Replies:
    0
    Views:
    407
    PontiMax
    Jan 12, 2005
  2. Aaron Fude
    Replies:
    5
    Views:
    1,232
    Aaron Fude
    May 21, 2004
  3. phl
    Replies:
    2
    Views:
    1,941
  4. Ant
    Replies:
    3
    Views:
    330
  5. Eddie B.

    Hide UNBOUND datagrid cols?

    Eddie B., Oct 21, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    154
    Alvin Bruney
    Oct 21, 2003
Loading...

Share This Page