Gridview Question C#
<p>So my gridview has two columns  BookID and BookName how can i retrieve the value of the BookID based on this event?</p>

<pre><code>   protected void myGridView_RowCommand(object sender, GridViewCommandEventArgs e)
</code></pre>

<p>The Other question I had is, my application has thee Tabs (Using Telerik) when I am in the fourth tab which is where I have my gridview and I click on any button, it posts back and sends me to the first tab.. how can I control this?</p>

<p>Thank you very much :)</p>

<p>ASP CODE</p>

<pre><code>&lt;asp:GridView ID="myGridView" ShowFooter="true" ShowHeader="true" CaptionAlign="Left"
                                    runat="server" ForeColor="Black" CellPadding="4" AutoGenerateColumns="False"
                                    CssClass="Grid" Width="100%" GridLines="None" OnRowCommand="myGridView_RowCommand" 
                                    AllowPaging="True" AllowSorting="true" OnPageIndexChanging="myGridView_PageIndexChanging" PageSize="50" OnSorting="myGridView_Sorting" &gt;
                                    &lt;Columns&gt;
                                        &lt;asp:TemplateField HeaderText="ID"&gt;
                                            &lt;ItemTemplate&gt;
                                                &lt;asp:Label runat="server" ID="lblBookID" Text='&lt;%#DataBinder.Eval(Container.DataItem,"ID")%&gt;' /&gt;
                                            &lt;/ItemTemplate&gt;
                                        &lt;/asp:TemplateField&gt;
                                        &lt;asp:BoundField DataField="name" HeaderText="Book Name" SortExpression="Name" /&gt;
                                        &lt;asp:TemplateField&gt;
                                            &lt;ItemTemplate&gt;
                                                &lt;asp:Button ID="Delete" Text="Remove" CommandArgument='&lt;%# Eval("ID") %&gt;'
                                                    CommandName="RemoveItem" CssClass="Button" runat="server" OnClientClick="javascript:return confirm('Sure you dont need this book.?');" /&gt;
                                            &lt;/ItemTemplate&gt;
                                        &lt;/asp:TemplateField&gt;
                                    &lt;/Columns&gt;
                                    &lt;EmptyDataTemplate&gt;
                                        No Books found
                                    &lt;/EmptyDataTemplate&gt;
                                    &lt;RowStyle CssClass="RowStyle" /&gt;
                                    &lt;HeaderStyle CssClass="HeaderStyle" ForeColor="White" HorizontalAlign="Center" /&gt;
                                    &lt;AlternatingRowStyle CssClass="AlternatingRowStyle" /&gt;
                                    &lt;FooterStyle CssClass="FooterStyle" /&gt;
                                &lt;/asp:GridView&gt;     
</code></pre>
