clickable grid view row asp.net
<p>i want asp.net gridview with its rows clickable.</p>

<p>i want to call a function when that row is clicked based on row index.</p>

<p>i tried to use RowDataBound event but it did not worked or me</p>

<p>i used the following code</p>

<pre><code>protected void PeopleGridView_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            e.Row.Attributes["onmouseover"] = "this.style.cursor='hand';this.style.textDecoration='underline';";
            e.Row.Attributes["onmouseout"] = "this.style.textDecoration='none';";

            e.Row.Attributes["onclick"] = ClientScript.GetPostBackClientHyperlink(this.PeopleGridView, "Select$" + e.Row.RowIndex);
        }
    }
</code></pre>

<p>where am i going wrong?</p>

<p>i dont want to redirect to any other page.
i want to fill the values in text box on the same page</p>
