Hiding TemplatefField Columns in GridView

Discussion in 'ASP .Net Web Controls' started by Brett, Jan 5, 2008.

  1. Brett

    Brett Guest

    How do you hide TemplateField columns in a GridView. With no ID or Name
    attribute, how do you tell it which column to hide? My TemplateField columns
    contain Header and Item templates both with asp:label controls with IDs, if
    that helps.

    Thanks
     
    Brett, Jan 5, 2008
    #1
    1. Advertisements

  2. Brett

    Toze Guest

    you can only access columns properties in the gridView by index
     
    Toze, Jan 6, 2008
    #2
    1. Advertisements

  3. Brett

    Brett Guest

    I appreciate the help. I got it. Thanks again.
     
    Brett, Jan 8, 2008
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.