Hi everyone I'm trying to make my existing GV a little bit slicker by allowing the user to click anywhere on the row and for the values of this row to populate a number of web controls below the GV. So far I have managed to get this:
protected void gvHeatPumpData_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#ceedfc'");
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=''");
e.Row.Attributes.Add("style", "cursor:pointer;");
//e.Row.Attributes.Add("onclick", "location='patron_detail.aspx?id=" + e.Row.Cells[0].Text + "'");
}
}
on the click of the row i want the values copied to textboxes below the grid
...
Go to the complete details ...