Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to hide template column in gridview

How to hide template column in gridview

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    unil Dhiman
    wrote on last edited by
    #1

    I want to hide template column in gridview. how can i do it. plz help me.

    R Y 2 Replies Last reply
    0
    • U unil Dhiman

      I want to hide template column in gridview. how can i do it. plz help me.

      R Offline
      R Offline
      r aa j
      wrote on last edited by
      #2

      make templatefield visible =false; like asp:templatefield visible="false" itemtemplate asp:label id="lblraj" runat="server" style="visibility: hidden;" itemtemplate asp:templatefield try this

      Rajendran.AL

      U 1 Reply Last reply
      0
      • U unil Dhiman

        I want to hide template column in gridview. how can i do it. plz help me.

        Y Offline
        Y Offline
        YeHtut
        wrote on last edited by
        #3

        This is Hide for Design Time. <asp:TemplateField HeaderText="Header Text" visible="false"> ... </asp:TemplateField> If U want to hide column in design time. For example, you want to hide first column. GridViewName.Column[0].Visible = false;

        U 1 Reply Last reply
        0
        • Y YeHtut

          This is Hide for Design Time. <asp:TemplateField HeaderText="Header Text" visible="false"> ... </asp:TemplateField> If U want to hide column in design time. For example, you want to hide first column. GridViewName.Column[0].Visible = false;

          U Offline
          U Offline
          unil Dhiman
          wrote on last edited by
          #4

          Thanks YeHtut. Its done now

          1 Reply Last reply
          0
          • R r aa j

            make templatefield visible =false; like asp:templatefield visible="false" itemtemplate asp:label id="lblraj" runat="server" style="visibility: hidden;" itemtemplate asp:templatefield try this

            Rajendran.AL

            U Offline
            U Offline
            unil Dhiman
            wrote on last edited by
            #5

            Thanks for reply.

            R 1 Reply Last reply
            0
            • U unil Dhiman

              Thanks for reply.

              R Offline
              R Offline
              r aa j
              wrote on last edited by
              #6

              welcome...lz dont ask simple questions...that and all you can get from google....bye

              Rajendran.AL

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups