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 can i set the visibility of a button inside a grid view programatically.

how can i set the visibility of a button inside a grid view programatically.

Scheduled Pinned Locked Moved ASP.NET
4 Posts 2 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.
  • S Offline
    S Offline
    souravghosh18
    wrote on last edited by
    #1

    In my situation i have to set the visibility of a button which is inside a grid view programatically in a button click.how can it be achieved

    A 1 Reply Last reply
    0
    • S souravghosh18

      In my situation i have to set the visibility of a button which is inside a grid view programatically in a button click.how can it be achieved

      A Offline
      A Offline
      anilpal
      wrote on last edited by
      #2

      hi, U have to either find control(button) on Databound event of gridview and ste its visibilty. or u can use foreach loop for gridview in find the control and set visibilty.

      Regards Anil Pal

      S 1 Reply Last reply
      0
      • A anilpal

        hi, U have to either find control(button) on Databound event of gridview and ste its visibilty. or u can use foreach loop for gridview in find the control and set visibilty.

        Regards Anil Pal

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

        actually there two buttons are there in every row in a grid view. One is edit and the other is Save.by default the visibility of the Save button remain false.if the Edit button of a particular row is clicked by the user then the visibility of the corresponding Save button will be true.

        A 1 Reply Last reply
        0
        • S souravghosh18

          actually there two buttons are there in every row in a grid view. One is edit and the other is Save.by default the visibility of the Save button remain false.if the Edit button of a particular row is clicked by the user then the visibility of the corresponding Save button will be true.

          A Offline
          A Offline
          anilpal
          wrote on last edited by
          #4

          Hi, So, then where is the problem. You canalso use the build buttons of gridview for edit the records in grid.

          Regards Anil Pal

          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