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 create a link in a grid view's each row to navigate to some other page

how to create a link in a grid view's each row to navigate to some other page

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

    how to create a link in a grid view's each row to navigate to some other page.???

    B D 2 Replies Last reply
    0
    • T theprofound

      how to create a link in a grid view's each row to navigate to some other page.???

      B Offline
      B Offline
      badgrs
      wrote on last edited by
      #2

      Convert the cell you want to use to a template field then you can edit the template and put a link control inside.

      1 Reply Last reply
      0
      • T theprofound

        how to create a link in a grid view's each row to navigate to some other page.???

        D Offline
        D Offline
        Dr_X
        wrote on last edited by
        #3

        <asp:HyperLinkField DataTextField="LastNameFirstNameMI"
        HeaderText="Employee" SortExpression="LastNameFirstNameMI" DataNavigateUrlFields="EncryptedUID"
        DataNavigateUrlFormatString="~/YourPageHere.aspx?id={0}" />

        Michael

        I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

        B 1 Reply Last reply
        0
        • D Dr_X

          <asp:HyperLinkField DataTextField="LastNameFirstNameMI"
          HeaderText="Employee" SortExpression="LastNameFirstNameMI" DataNavigateUrlFields="EncryptedUID"
          DataNavigateUrlFormatString="~/YourPageHere.aspx?id={0}" />

          Michael

          I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

          B Offline
          B Offline
          badgrs
          wrote on last edited by
          #4

          Woops! Forgot there was one of them! :)

          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