Get the row that has been clicked in the gridview
<p>I have added OnClick event dynamically for gridview.So when I click on any of the row on grid view, the event is fired but I can't get which row is clicked.
This is the code where I add event.</p>

<pre><code>protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
    e.Row.Attributes["OnClick"] = Page.ClientScript.GetPostBackClientHyperlink(btnGrid, string.Empty);

}
</code></pre>

<p>//This is the code which catches this event</p>

<pre><code>protected void GridView1_OnClick(object sender, EventArgs e)
{
    _ID="10" //Static data. I need this from the gridview1.row[ClickedRow].cell[0]
}
</code></pre>
