title: How to get GridView's LinkButton ForeColor in RowCommand Event?
body: <p>I have a GridView with the following columns.</p>
  
  <pre><code> &lt;Columns&gt;
       &lt;asp:TemplateField HeaderText="Item Description"&gt;
       &lt;ItemTemplate&gt;
       &lt;asp:Label ID="lblgvItemName" runat="server" Text='&lt;%# Bind("ItemName") %&gt;'&gt;&lt;/asp:Label&gt;
       &lt;/ItemTemplate&gt;
       &lt;/asp:TemplateField&gt;
      &lt;asp:BoundField DataField="IssueQty" HeaderText="Issue Qty" /&gt;
      &lt;asp:TemplateField&gt;
      &lt;ItemTemplate&gt;
         &lt;asp:LinkButton ID="lnkReturn" runat="server" CommandName="Return" CommandArgument='&lt;%# Eval("ItemName") + "," + Eval("IssueQty") + %&gt;' Text="Return" Font-Bold="true" ForeColor="Red"&gt;
         &lt;/asp:LinkButton&gt;
      &lt;/ItemTemplate&gt;
   &lt;/Columns&gt;
  </code></pre>
  
  <p>In that I need the get the ForeColor of the LinkButton in the RowCommand event of the GridView. Based on the ForeColor, I am doing some validation.</p>
  
  <p>I tried like this, </p>
  
  <pre><code> string Color = ((LinkButton)gvRIVDetails.Rows[Convert.ToInt32(e.CommandArgument.ToString()].FindControl("lnkReturn")).ForeColor;
  </code></pre>
  
  <p>But I have already specified ItemName and IssueQty in the Command Argument. So it throws the exception.
  How to find the ForeColor of the LinkButton?</p>