GridView hyperlink
-
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
-
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
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.