title: Getting selectedrow in RowCommand
body: <p>i have a gridview as:</p>
  
  <pre><code>&lt;asp:GridView ID="gdvOpinions" runat="server" Width="100%" CellPadding="4" 
                          ForeColor="#333333" GridLines="None" Height="100px" Visible="False" 
                          AutoGenerateColumns="False" onrowcommand="gdvOpinions_RowCommand" &gt;
                      &lt;AlternatingRowStyle BackColor="White" ForeColor="#284775" /&gt;
                      &lt;Columns&gt;
                          &lt;asp:ButtonField ButtonType="Button" CommandName="Confirm" Text="تائید" /&gt;
                          &lt;asp:ButtonField ButtonType="Button" CommandName="Delete" Text="حذف" /&gt;
                          &lt;asp:BoundField DataField="ID" HeaderText="ID" /&gt;
                          &lt;asp:BoundField DataField="مقاله" HeaderText="مقاله" &gt;
                          &lt;ControlStyle Width="150px" /&gt;
                          &lt;/asp:BoundField&gt;
                          &lt;asp:BoundField DataField="نظر کاربر" HeaderText="نظر کاربر" &gt;
                          &lt;ControlStyle Width="250px" /&gt;
                          &lt;/asp:BoundField&gt;
                      &lt;/Columns&gt;
                      &lt;EditRowStyle BackColor="#999999" /&gt;
                      &lt;FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /&gt;
                      &lt;HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /&gt;
                      &lt;PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /&gt;
                      &lt;RowStyle BackColor="#F7F6F3" ForeColor="#333333" /&gt;
                      &lt;SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /&gt;
                      &lt;SortedAscendingCellStyle BackColor="#E9E7E2" /&gt;
                      &lt;SortedAscendingHeaderStyle BackColor="#506C8C" /&gt;
                      &lt;SortedDescendingCellStyle BackColor="#FFFDF8" /&gt;
                      &lt;SortedDescendingHeaderStyle BackColor="#6F8DAE" /&gt;
                  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>As you see, i have two buttonfield for every row, but when i click one of these buttons and want to get their row in</p>
  
  <pre><code>gdvOpinions_RowCommand
  </code></pre>
  
  <p>the</p>
  
  <pre><code>gdvOpinions.SelectedRow
  </code></pre>
  
  <p>returns null;
  how should i find which row is selected?</p>