title: GridView Events are not Firing in asp.net?
body: <p>I am using a Gridview but the events are not firing?</p>
  
  <pre><code> &lt;asp:GridView ID="GridView3" runat="server" ShowHeaderWhenEmpty="true" DataKeyNames="Ac_Code" AutoGenerateColumns="False"
                AllowPaging="true" PageSize="10" Width="100%" BorderStyle="Solid" style="overflow:auto" OnSelectedIndexChanged="GridView3_SelectedIndexChanged"  OnRowDataBound="GridView3_RowDataBound" AllowSorting="true" OnSorting="GridView3_Sorting" OnRowCreated="GridView3_RowCreated"&gt;
                      &lt;AlternatingRowStyle BackColor="#CCCCFF" /&gt;
                      &lt;Columns&gt;                      
                          &lt;asp:BoundField DataField="Ac_Code" HeaderText="A/c Code" SortExpression="Ac_Code" ItemStyle-Width="12%" ItemStyle-HorizontalAlign="Left" HeaderStyle-CssClass="Dth" /&gt;
                          &lt;asp:BoundField DataField="Ac_Name" HeaderText="Account" SortExpression="Ac_Name" ItemStyle-Width="12%" ItemStyle-HorizontalAlign="Left" HeaderStyle-CssClass="Dth"/&gt;
                          &lt;asp:BoundField DataField="Ac_Sub_Group_Name" HeaderText="A/c Sub Group" SortExpression="Ac_Sub_Group_Name" ItemStyle-Width="12%" ItemStyle-HorizontalAlign="Left" HeaderStyle-CssClass="Dth" /&gt;
                          &lt;asp:CommandField SelectText="Select" ShowSelectButton="true" Visible="false" /&gt;
                      &lt;/Columns&gt;
  
                  &lt;/asp:GridView&gt;
  </code></pre>