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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to set a row of a gridview visible=false

How to set a row of a gridview visible=false

Scheduled Pinned Locked Moved ASP.NET
tutorial
5 Posts 3 Posters 2 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.
  • S Offline
    S Offline
    santu321
    wrote on last edited by
    #1

    How to set the visibility of a particular row of a gridview is false in the click event of a button.

    G 1 Reply Last reply
    0
    • S santu321

      How to set the visibility of a particular row of a gridview is false in the click event of a button.

      G Offline
      G Offline
      Gaurav Dudeja India
      wrote on last edited by
      #2

      It cant be possible you can only hide the row in rowdatabound event.

      S 1 Reply Last reply
      0
      • G Gaurav Dudeja India

        It cant be possible you can only hide the row in rowdatabound event.

        S Offline
        S Offline
        santu321
        wrote on last edited by
        #3

        i have to do it in a button click event.How to catch the selected row from a button click event.

        C 1 Reply Last reply
        0
        • S santu321

          i have to do it in a button click event.How to catch the selected row from a button click event.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          You can't. He just told you that. How does a button select a row ? Is it in the row ? Then perhaps you can check the parent, or store an id in the button's tag and just remove it from the data source.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          G 1 Reply Last reply
          0
          • C Christian Graus

            You can't. He just told you that. How does a button select a row ? Is it in the row ? Then perhaps you can check the parent, or store an id in the button's tag and just remove it from the data source.

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            G Offline
            G Offline
            Gaurav Dudeja India
            wrote on last edited by
            #5

            Ya, if the button is in a row then you can hide it from row command event, else it is not possible.

            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