title: How to show button on click of link button of gridview
body: <p>I have a grid view and inside that i have some link button. What I am trying to do is when i clicked on link-button then two more buttons which is outside of grid view should be shown.
  I searched it on google and i found some solutions as well. I set command name of linkbutton and on RowCommand event i write below code. But still those buttons are not shown to me.
  Can you please help me.....</p>
  
  <p>Code of Gridview:</p>
  
  <pre><code>&lt;asp:Panel ID="Panel1" runat="server"&gt;
              &lt;fieldset&gt;
                  &lt;legend&gt;Action&lt;/legend&gt;
                  &lt;table border='0' align='center'&gt;
                      &lt;tr&gt;
                          &lt;td align="center"&gt;
                              &lt;asp:Button ID="btnShow" runat="server" Text="Show" /&gt;
                          &lt;/td&gt;
                          &lt;td align="center"&gt;
                              &lt;asp:Button ID="btnRefresh" runat="server" Text="Reset" /&gt;
                          &lt;/td&gt;
                          &lt;td align="center"&gt;
                              &lt;asp:Button ID="btnexptocsv" runat="server" Text="Export To CSV" Enabled="False" /&gt;
                          &lt;/td&gt;
                          &lt;td align="center"&gt;
                              &lt;asp:Button ID="btnexptoexcel" runat="server" Text="Export To Excel" Enabled="False" /&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/table&gt;
              &lt;/fieldset&gt;
          &lt;/asp:Panel&gt;
          &lt;asp:UpdatePanel ID="updgrd" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true"&gt;
              &lt;ContentTemplate&gt;
                  &lt;fieldset&gt;
                      &lt;legend&gt;Complaint Count &lt;/legend&gt;
                      &lt;asp:GridView ID="grd_ComplaintCount" runat="server" AutoGenerateColumns="False"
                          CellPadding="4" EnableModelValidation="True" ForeColor="#333333" GridLines="None"&gt;
                          &lt;AlternatingRowStyle BackColor="White" /&gt;
                          &lt;Columns&gt;
                              &lt;asp:TemplateField HeaderText="Total Complaint"&gt;
                                  &lt;ItemTemplate&gt;
                                      &lt;asp:LinkButton runat="server" ID="lbtn_TotalComplaint" CommandName="lnkTotal" Text='&lt;%#Bind("TotalComplaint") %&gt;'
                                          CommandArgument="Total"&gt;&lt;/asp:LinkButton&gt;
                                  &lt;/ItemTemplate&gt;
                              &lt;/asp:TemplateField&gt;
                              &lt;asp:TemplateField HeaderText="Total Open Complaint"&gt;
                                  &lt;ItemTemplate&gt;
                                      &lt;asp:LinkButton runat="server" ID="lbtn_TotalOpenComplaint" CommandName="lnkOpen"
                                          Text='&lt;%#Bind("TotalOpen") %&gt;' CommandArgument="Open"&gt;&lt;/asp:LinkButton&gt;
                                  &lt;/ItemTemplate&gt;
                              &lt;/asp:TemplateField&gt;
                              &lt;asp:TemplateField HeaderText="Total Closed Complaint"&gt;
                                  &lt;ItemTemplate&gt;
                                      &lt;asp:LinkButton runat="server" ID="lbtn_TotalCloseComplaint" CommandName="lnkClosed"
                                          Text='&lt;%#Bind("TotalClose") %&gt;' CommandArgument="Closed"&gt;&lt;/asp:LinkButton&gt;
                                  &lt;/ItemTemplate&gt;
                              &lt;/asp:TemplateField&gt;
                              &lt;asp:TemplateField HeaderText="Total Reassigned Complaint"&gt;
                                  &lt;ItemTemplate&gt;
                                      &lt;asp:LinkButton runat="server" ID="lbtn_TotalReassignedComplaint" CommandName="lnkReassign"
                                          Text='&lt;%#Bind("TotalMemberReAssign") %&gt;' CommandArgument="Reassigned"&gt;&lt;/asp:LinkButton&gt;
                                  &lt;/ItemTemplate&gt;
                              &lt;/asp:TemplateField&gt;
                              &lt;asp:TemplateField HeaderText="Total Observation Complaint"&gt;
                                  &lt;ItemTemplate&gt;
                                      &lt;asp:LinkButton runat="server" ID="lbtn_TotalObservationComplaint" CommandName="lnkObeservation"
                                          Text='&lt;%#Bind("TotalObservation") %&gt;' CommandArgument="Observation"&gt;&lt;/asp:LinkButton&gt;
                                  &lt;/ItemTemplate&gt;
                              &lt;/asp:TemplateField&gt;
                          &lt;/Columns&gt;
                          &lt;EditRowStyle BackColor="#2461BF" /&gt;
                          &lt;FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /&gt;
                          &lt;HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /&gt;
                          &lt;PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" /&gt;
                          &lt;RowStyle BackColor="#EFF3FB" /&gt;
                          &lt;SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /&gt;
                      &lt;/asp:GridView&gt;
                  &lt;/fieldset&gt;
                  &lt;fieldset&gt;
                      &lt;legend&gt;
                          &lt;asp:Label runat="server" ID="Legend_Remark"&gt;&lt;/asp:Label&gt;&lt;/legend&gt;
                      &lt;asp:GridView ID="grd_ComplaintDetails" runat="server" AutoGenerateColumns="False"
                          CellPadding="4" EnableModelValidation="True" ForeColor="#333333" GridLines="None"
                          AllowPaging="True" PageSize="20"&gt;
                          &lt;AlternatingRowStyle BackColor="White" /&gt;
                          &lt;Columns&gt;
                              &lt;asp:HyperLinkField DataNavigateUrlFields="MemberComplaintID" DataNavigateUrlFormatString="frmComplaintActionDetails.aspx?CID={0}"
                                  DataTextField="MemberComplaintNo" HeaderText="Complaint No" /&gt;
                              &lt;asp:BoundField DataField="MemberCode" HeaderText="Member Code" /&gt;
                              &lt;asp:BoundField DataField="DepartmentName" HeaderText="Service Area" /&gt;
                              &lt;asp:BoundField DataField="ComplaintName" HeaderText="Type Of Complaint" /&gt;
                              &lt;asp:BoundField DataField="AutoEscalation" HeaderText="Auto Escalation" /&gt;
                              &lt;asp:BoundField DataField="ManualEscalation" HeaderText="Manual Escalation" /&gt;
                              &lt;asp:BoundField DataField="ComplaintDate" HeaderText="Complaint Date" /&gt;
                              &lt;asp:BoundField DataField="LastActionTakenBy" HeaderText="Last Action TakenBy" /&gt;
                              &lt;asp:BoundField DataField="LastActionDate" HeaderText="Last ActionDate" /&gt;
                              &lt;asp:BoundField DataField="Severity" HeaderText="Severity" /&gt;
                              &lt;asp:BoundField DataField="ComplaintAction" HeaderText="Complaint Action" /&gt;
                          &lt;/Columns&gt;
                          &lt;EditRowStyle BackColor="#2461BF" /&gt;
                          &lt;FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /&gt;
                          &lt;HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /&gt;
                          &lt;PagerStyle BackColor="#507CD1" ForeColor="White" HorizontalAlign="Center" /&gt;
                          &lt;RowStyle BackColor="#EFF3FB" /&gt;
                          &lt;SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /&gt;
                      &lt;/asp:GridView&gt;
                  &lt;/fieldset&gt;
              &lt;/ContentTemplate&gt;
          &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>Code of Rowcommand event:</p>
  
  <pre><code>Protected Sub grd_ComplaintCount_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles grd_ComplaintCount.RowCommand
      ComplaintCount_Detail(e.CommandArgument)
      If e.CommandName = "lnkTotal" Then
          btnexptocsv.Enabled = True
          btnexptoexcel.Enabled = True
      ElseIf e.CommandName = "lnkOpen" Then
          btnexptocsv.Enabled = True
          btnexptoexcel.Enabled = True
      ElseIf e.CommandName = "lnkClosed" Then
          btnexptocsv.Enabled = True
          btnexptoexcel.Enabled = True
      ElseIf e.CommandName = "lnkReassign" Then
          btnexptocsv.Enabled = True
          btnexptoexcel.Enabled = True
      ElseIf e.CommandName = "lnkObeservation" Then
          btnexptocsv.Enabled = True
          btnexptoexcel.Enabled = True
      Else
          btnexptoexcel.Enabled = False
          btnexptocsv.Enabled = False
      End If
  End Sub
  </code></pre>
  
  <p>My Question :How to Show Buttons (which is outside of grid view) after Link Button Clicked
  (which is inside of gridview)</p>