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. grid view

grid view

Scheduled Pinned Locked Moved ASP.NET
cssquestion
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.
  • J Offline
    J Offline
    javierarka
    wrote on last edited by
    #1

    How can i disable a hyperlink column when the value inside is 0 Lets said is a monthly display and tehy are going to be reference to another page according to the value if the value inside the column is 1 or more i need to be hyperlink bu tif the value is 0 i do not need it to be hyperlink. How can i achieve this Thanks:-D

    N 1 Reply Last reply
    0
    • J javierarka

      How can i disable a hyperlink column when the value inside is 0 Lets said is a monthly display and tehy are going to be reference to another page according to the value if the value inside the column is 1 or more i need to be hyperlink bu tif the value is 0 i do not need it to be hyperlink. How can i achieve this Thanks:-D

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

      If I can understand you correctly you want to disable the hyperlink in the column based on whether the value of the cell is 0. First, you probably don't want to disable the entire column, only the individual cells in the column. You can use a template column to create a hyperlink or not depending on the value. You could also handle the databinding events such as ItemDataBound and configure the cell there.


      only two letters away from being an asset

      J 1 Reply Last reply
      0
      • N Not Active

        If I can understand you correctly you want to disable the hyperlink in the column based on whether the value of the cell is 0. First, you probably don't want to disable the entire column, only the individual cells in the column. You can use a template column to create a hyperlink or not depending on the value. You could also handle the databinding events such as ItemDataBound and configure the cell there.


        only two letters away from being an asset

        J Offline
        J Offline
        javierarka
        wrote on last edited by
        #3

        Yes that is right i need to disable the individual cells. How can i use the template column sto let it know that it need to be able only when the cells has a value of 1 or more Thanks

        N 1 Reply Last reply
        0
        • J javierarka

          Yes that is right i need to disable the individual cells. How can i use the template column sto let it know that it need to be able only when the cells has a value of 1 or more Thanks

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

          <% if cell.value == 0 %> only two letters away from being an asset

          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