Hide boundcolumn in grid?

Discussion in 'ASP .Net' started by Kenneth, Jan 12, 2004.

  1. Kenneth

    Kenneth Guest

    Hi,

    In a .aspx I have a grid with 8 boundcolumns. In code
    behind I have two methods and the result from the second
    method ONLY needs 6 boundcolumns of the 8.

    Can I make 2 of the boundcolumns invisible?

    Any suggestions?

    TIA

    /Kenneth
     
    Kenneth, Jan 12, 2004
    #1
    1. Advertising

  2. Kenneth

    Curt_C [MVP] Guest

    Try setting the width to 0 ?

    --
    Curt Christianson
    Owner/Lead Developer, DF-Software
    www.Darkfalz.com


    "Kenneth" <> wrote in message
    news:0b4c01c3d920$8ca21840$...
    > Hi,
    >
    > In a .aspx I have a grid with 8 boundcolumns. In code
    > behind I have two methods and the result from the second
    > method ONLY needs 6 boundcolumns of the 8.
    >
    > Can I make 2 of the boundcolumns invisible?
    >
    > Any suggestions?
    >
    > TIA
    >
    > /Kenneth
     
    Curt_C [MVP], Jan 12, 2004
    #2
    1. Advertising

  3. Kenneth

    Kenneth Guest

    Yeah,

    But how do I refernce the column? It has no ID.

    /Kenneth
    >-----Original Message-----
    >Try setting the width to 0 ?
    >
    >--
    >Curt Christianson
    >Owner/Lead Developer, DF-Software
    >www.Darkfalz.com
    >
    >
    >"Kenneth" <> wrote in message
    >news:0b4c01c3d920$8ca21840$...
    >> Hi,
    >>
    >> In a .aspx I have a grid with 8 boundcolumns. In code
    >> behind I have two methods and the result from the second
    >> method ONLY needs 6 boundcolumns of the 8.
    >>
    >> Can I make 2 of the boundcolumns invisible?
    >>
    >> Any suggestions?
    >>
    >> TIA
    >>
    >> /Kenneth

    >
    >
    >.
    >
     
    Kenneth, Jan 12, 2004
    #3
  4. Kenneth

    Curt_C [MVP] Guest

    Hmm.... maybe something like this would work
    dgSearchResults.Columns[2].Visible = false;


    --
    Curt Christianson
    Owner/Lead Developer, DF-Software
    www.Darkfalz.com



    "Kenneth" <> wrote in message
    news:099c01c3d926$8c6f87d0$...
    > Yeah,
    >
    > But how do I refernce the column? It has no ID.
    >
    > /Kenneth
    > >-----Original Message-----
    > >Try setting the width to 0 ?
    > >
    > >--
    > >Curt Christianson
    > >Owner/Lead Developer, DF-Software
    > >www.Darkfalz.com
    > >
    > >
    > >"Kenneth" <> wrote in message
    > >news:0b4c01c3d920$8ca21840$...
    > >> Hi,
    > >>
    > >> In a .aspx I have a grid with 8 boundcolumns. In code
    > >> behind I have two methods and the result from the second
    > >> method ONLY needs 6 boundcolumns of the 8.
    > >>
    > >> Can I make 2 of the boundcolumns invisible?
    > >>
    > >> Any suggestions?
    > >>
    > >> TIA
    > >>
    > >> /Kenneth

    > >
    > >
    > >.
    > >
     
    Curt_C [MVP], Jan 12, 2004
    #4
  5. Kenneth

    Kenneth Guest

    Yep, it works.

    Thanks for a rapid answer.

    /Kenneth

    >-----Original Message-----
    >Hmm.... maybe something like this would work
    >dgSearchResults.Columns[2].Visible = false;
    >
    >
    >--
    >Curt Christianson
    >Owner/Lead Developer, DF-Software
    >www.Darkfalz.com
    >
    >
    >
    >"Kenneth" <> wrote in

    message
    >news:099c01c3d926$8c6f87d0$...
    >> Yeah,
    >>
    >> But how do I refernce the column? It has no ID.
    >>
    >> /Kenneth
    >> >-----Original Message-----
    >> >Try setting the width to 0 ?
    >> >
    >> >--
    >> >Curt Christianson
    >> >Owner/Lead Developer, DF-Software
    >> >www.Darkfalz.com
    >> >
    >> >
    >> >"Kenneth" <> wrote in message
    >> >news:0b4c01c3d920$8ca21840$...
    >> >> Hi,
    >> >>
    >> >> In a .aspx I have a grid with 8 boundcolumns. In code
    >> >> behind I have two methods and the result from the

    second
    >> >> method ONLY needs 6 boundcolumns of the 8.
    >> >>
    >> >> Can I make 2 of the boundcolumns invisible?
    >> >>
    >> >> Any suggestions?
    >> >>
    >> >> TIA
    >> >>
    >> >> /Kenneth
    >> >
    >> >
    >> >.
    >> >

    >
    >
    >.
    >
     
    Kenneth, Jan 12, 2004
    #5
    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. Jennyfer J Barco

    Menu options hide behind a grid

    Jennyfer J Barco, Sep 22, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    524
    Curt_C [MVP]
    Sep 22, 2004
  2. jef
    Replies:
    1
    Views:
    4,406
    Steve C. Orr [MVP, MCSD]
    Mar 21, 2005
  3. hazz
    Replies:
    0
    Views:
    2,618
  4. Kevin Dahlhausen
    Replies:
    1
    Views:
    724
    Paul McNett
    Oct 4, 2004
  5. mesut
    Replies:
    0
    Views:
    574
    mesut
    Jun 29, 2007
Loading...

Share This Page