I have a gridview on my ASP.NET page.
As I mouse over each row, I change the colour of the row background (this part is working).
What I am trying to do is as I mouse over each row, I am trying to populate a text box with a value from that row.
Here is the code I have so far:
After I move over each row, the TextBox1 gets loaded with [Object].
Just wondering if anyone knows how to read any value out of the row of the gridview?
As I mouse over each row, I change the colour of the row background (this part is working).
What I am trying to do is as I mouse over each row, I am trying to populate a text box with a value from that row.
Here is the code I have so far:
Code:
Dim gridScript3 As String = "<script language='" & "javascript" & "'>
function SetTextBox(row) { document.getElementById('TextBox1').value =
document.getElementById('GridView1'); } </script> "
After I move over each row, the TextBox1 gets loaded with [Object].
Just wondering if anyone knows how to read any value out of the row of the gridview?