SelectedIndexChanged event of gridview fails to fire randomly

Xenophanes

New Member
Hi I have a Gridview SelectedIndexChanged event. it fires on click of any row in that grid. But sometime (once in 10 tries) it doesnt fire. i have some code inside AgeGrid_SelectedIndexChanged which set the session variable. when it fails not able to get proper value. Any Idea why it fails randomly? i have not set EnableEventValidation="false" property for that page. And using visual studio 2005.\[code\]<Asp:GridView ID="agendaGrid" runat="server" Width="96%" GridLines="Both" EnableViewState="true" HeaderStyle-CssClass="GridViewHeader " OnSorting = "AgeGrid_Sorting" CssClass="GridView" AutoGenerateColumns="false" OnSelectedIndexChanged="AgeGrid_SelectedIndexChanged" AllowPaging="true" PageSize="10" ItemTemplateType="PopUpMenu" ShowTemplateFields="true" EnableOnClick="true" RowStyle-Font-Size="13px" RowStyle-VerticalAlign="middle" EnablePopUpClick="true" OnRowDataBound="AgeGrid_RowDataBound" AllowSorting ="true" ></Asp:GridView>\[/code\]
 
Back
Top