I know this might be a dumb question but does GridView have a OnRowSelect like OnRowUpdating, OnRowDeleting in ASP.NET C#?

```
protected void GridView_OnRowSelect(object sender, GridViewSelectEventArgs e)
{
    loc_id_hf.Value = (((HiddenField)(GridView2.Rows[e.RowIndex].FindControl("loc_id_hf"))
}

```

When I put the code above inside the event I get an error on e.RowIndex

Any help will be really appreicated.