Gridview WebUserControl access selected row
<p>i have a grid view in the web custom control and want to select any row and so that i can edit that row. the edit button is on the master page and default.aspx is inherited from that master and know i want the row id on my defult page so that i can edit that row easily.</p>

<p>my web user control is</p>

<pre><code>&lt;asp:GridView runat="server" ID="grvBranches" GridLines="None" 
  AutoGenerateColumns="False" CellPadding="5" 
  OnRowDataBound="grvBranches_RowDataBound" 
  OnRowCancelingEdit="grvBranches_RowCancelingEdit" 
  OnRowEditing="grvBranches_RowEditing" 
  OnRowUpdating="grvBranches_RowUpdating"&gt;
    &lt;SelectedRowStyle BackColor="#d8d8d8" /&gt;
    &lt;HeaderStyle BackColor="#d8d8d8" /&gt;
    &lt;Columns&gt;
        &lt;asp:TemplateField&gt;
            &lt;HeaderTemplate&gt;
                &lt;asp:Label Text="BranchName" ID="lblHeaderBranchName" runat="server" /&gt;
            &lt;/HeaderTemplate&gt;
            &lt;ItemTemplate&gt;
                &lt;asp:Label Text='&lt;%# Eval("ID") %&gt;' ID="lblID" Visible="false" runat="server" /&gt;
                &lt;asp:Label Text='&lt;%# Eval("Branch_Name") %&gt;' ID="lblBranchName" runat="server" /&gt;
            &lt;/ItemTemplate&gt;
        &lt;/asp:TemplateField&gt;
        &lt;asp:TemplateField&gt;
            &lt;HeaderTemplate&gt;
                &lt;asp:Label Text="OrganizationName" ID="lblHeaderOrganizationName" runat="server" /&gt;
            &lt;/HeaderTemplate&gt;
            &lt;ItemTemplate&gt;
                &lt;asp:Label Text='&lt;%# Eval("Organization_Name") %&gt;' ID="lblOrganizationName" runat="server" /&gt;
            &lt;/ItemTemplate&gt;
        &lt;/asp:TemplateField&gt;
        &lt;asp:TemplateField&gt;
            &lt;HeaderTemplate&gt;
                &lt;asp:Label Text="Address" ID="lblHeaderAddress" runat="server" /&gt;
            &lt;/HeaderTemplate&gt;
            &lt;ItemTemplate&gt;
                &lt;asp:Label Text='&lt;%# Eval("Address_1") %&gt;' ID="lblAddress" runat="server" /&gt;
            &lt;/ItemTemplate&gt;
        &lt;/asp:TemplateField&gt;
        &lt;asp:TemplateField&gt;
            &lt;HeaderTemplate&gt;
                &lt;asp:Label Text="City" ID="lblHeaderCityName" runat="server" /&gt;
            &lt;/HeaderTemplate&gt;
            &lt;ItemTemplate&gt;
                &lt;asp:Label Text='&lt;%# Eval("City_Name") %&gt;' ID="lblCityName" runat="server" /&gt;
            &lt;/ItemTemplate&gt;
        &lt;/asp:TemplateField&gt;
        &lt;asp:BoundField /&gt;
        &lt;asp:CommandField ShowSelectButton="True" /&gt;
    &lt;/Columns&gt;
&lt;/asp:GridView&gt;
</code></pre>

<p>and i want this rowid in on my Default page</p>
