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. Gridview-checkbox

Gridview-checkbox

Scheduled Pinned Locked Moved ASP.NET
help
4 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.
  • A Offline
    A Offline
    amitamit099
    wrote on last edited by
    #1

    Hi All, There is two column in Gridview. First is checkbox and second is textbox. when i checkbox is check, then textbox visible should be false. else i have to make textbox visible true. got it... if checkbox.checked= true then textbox.Visible= false else textbox.Visible= true end if so...problem is i am not getting the event of checkbox... plz can u send me code..

    N M 2 Replies Last reply
    0
    • A amitamit099

      Hi All, There is two column in Gridview. First is checkbox and second is textbox. when i checkbox is check, then textbox visible should be false. else i have to make textbox visible true. got it... if checkbox.checked= true then textbox.Visible= false else textbox.Visible= true end if so...problem is i am not getting the event of checkbox... plz can u send me code..

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      DataGridDemo[^] Look at the section titled Checkboxes and Textboxes


      I know the language. I've read a book. - _Madmatt

      A 1 Reply Last reply
      0
      • N Not Active

        DataGridDemo[^] Look at the section titled Checkboxes and Textboxes


        I know the language. I've read a book. - _Madmatt

        A Offline
        A Offline
        amitamit099
        wrote on last edited by
        #3

        Thanks for your replay...

        1 Reply Last reply
        0
        • A amitamit099

          Hi All, There is two column in Gridview. First is checkbox and second is textbox. when i checkbox is check, then textbox visible should be false. else i have to make textbox visible true. got it... if checkbox.checked= true then textbox.Visible= false else textbox.Visible= true end if so...problem is i am not getting the event of checkbox... plz can u send me code..

          M Offline
          M Offline
          Mangesh4
          wrote on last edited by
          #4

          if u want disable the textbox which is in grid acco. to checkbox then you should write this code for i=0 to gridview.row.count-1 if ctype(gridview.rows(i).findcontrol("checkbox"),checkbox).checked=true then ctype(gridview.rows(i).findcontrol("textbox"),visible).checked=false else ctype(gridview.rows(i).findcontrol("textbox"),visible).checked=false end if next

          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