title: Update Progress not working inside Gridview in Asp.Net
body: <p>I want to show PreLoader on button click inside Gridview.
  But it is not working as expected .</p>
  
  <pre><code>&lt;asp:GridView ID="gv_deparment" runat="server" AutoGenerateColumns="false" OnRowCommand="gvPurchaseInvoiceEntry_RowCommand"
                                      AllowSorting="True" AllowPaging="True" OnPageIndexChanging="gv_deparment_PageIndexChanging" OnSorting="gv_deparment_Sorting"
                                      HeaderStyle-Font-Bold="false" CssClass="gvstyling gridview_width_100" ShowHeaderWhenEmpty="true" EmptyDataText="Record(s) Not Found!"&gt;
                                      &lt;Columns&gt;
  
                                          &lt;asp:BoundField
                                              DataField="department"
                                              HeaderText="Department"
                                              SortExpression="department" /&gt;
  
                                          &lt;asp:TemplateField HeaderText="Status" ItemStyle-Width="10"&gt;
                                              &lt;ItemTemplate&gt;
                                                  &lt;asp:UpdatePanel ID="UpdatePanel3" runat="server"            UpdateMode="Conditional" ChildrenAsTriggers="true"&gt;
                                                      &lt;ContentTemplate&gt;
                                                          &lt;asp:LinkButton ID="btnUpdate" runat="server" CommandName="cmdUpdate"&gt;&lt;i class="fa fa-edit"&gt;&lt;/i&gt; Update &lt;/asp:LinkButton&gt;
                                                          &lt;asp:HiddenField ID="hf_departmnt" Value='&lt;%#  Eval("department_id")%&gt;' runat="server" /&gt;
                                                          &lt;asp:CheckBox ID="ck_departmnt" OnCheckedChanged="ck_departmnt_CheckedChanged" AutoPostBack="true" runat="server" Checked='&lt;%# Eval("isactive") %&gt;' /&gt;
                                                      &lt;/ContentTemplate&gt;
                                                      &lt;Triggers&gt;
                                                          &lt;asp:AsyncPostBackTrigger ControlID="btnUpdate" EventName="Click" /&gt;
                                                      &lt;/Triggers&gt;
  
  
  
                                                  &lt;/asp:UpdatePanel&gt;
  
  
  
  
                                              &lt;/ItemTemplate&gt;
                                          &lt;/asp:TemplateField&gt;
  
                                          &lt;asp:TemplateField HeaderText="Update Message"  ItemStyle-Width="200"&gt;
                                              &lt;ItemTemplate&gt;
                                                  &lt;asp:UpdateProgress ID="UpdateProgressdf1"     runat="server" ClientIDMode="AutoID" Visible="true"&gt;
                                                      &lt;ProgressTemplate&gt;
                                                          &lt;img src="../img/spinner-mini.gif" /&gt;
                                                          &amp;nbsp; Please Wait...
                                                      &lt;/ProgressTemplate&gt;
                                                  &lt;/asp:UpdateProgress&gt;
                                              &lt;/ItemTemplate&gt;
                                          &lt;/asp:TemplateField&gt;
  
                                      &lt;/Columns&gt;
                                  &lt;/asp:GridView&gt; 
  </code></pre>
  
  <p><strong>This is the problem that I am facing.
  On single button click, only preloader besides the button should be display.</strong>
  Here is the Image
  <img src="https://i.stack.imgur.com/RysTU.png" alt="enter image description here"></p>
  
  <p>But unfortunately all the preloader are displaying on single button click.</p>
  
  <p>Any help will be appreciated</p>