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 hyperlink

GridView hyperlink

Scheduled Pinned Locked Moved ASP.NET
csharpquestionasp-netdatabasemysql
2 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.
  • N Offline
    N Offline
    Nikesh Jagtap
    wrote on last edited by
    #1

    Hello, I am using Microsoft Visual Studio 2008. I am creating one website using ASP.net with C#. I have taken one GridView control. In that I am adding 2 columns & bind them to the mysql database. When mouse cursor moves to the records in the gridview then records turn in to hyperlink record. I do this thr' following code e.Row.Attributes["onmouseover"] = "this.style.cursor='hand';this.style.textDecoration='underline'"; e.Row.Attributes["onmouseout"] = "this.style.textDecoration='none';"; My problem is i want when we click on the specific record/row then one columns that record should get display in TextBox & next columns selected record get display in DropDownList contrl. So how can i achieve it? Thanks in advance Nikesh

    D 1 Reply Last reply
    0
    • N Nikesh Jagtap

      Hello, I am using Microsoft Visual Studio 2008. I am creating one website using ASP.net with C#. I have taken one GridView control. In that I am adding 2 columns & bind them to the mysql database. When mouse cursor moves to the records in the gridview then records turn in to hyperlink record. I do this thr' following code e.Row.Attributes["onmouseover"] = "this.style.cursor='hand';this.style.textDecoration='underline'"; e.Row.Attributes["onmouseout"] = "this.style.textDecoration='none';"; My problem is i want when we click on the specific record/row then one columns that record should get display in TextBox & next columns selected record get display in DropDownList contrl. So how can i achieve it? Thanks in advance Nikesh

      D Offline
      D Offline
      Dinesh Mani
      wrote on last edited by
      #2

      I've not done this in VS 2008 / .NET 3.x. so some tinkering might be needed. Check if you can associate a command name and a command event to the column, just try playing around with the item template. If you can then use it to raise the command event and invoke the edit mode for that row and take it from there.

      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