Sivajihero Hero

Sivajihero Hero

  • NA
  • 105
  • 32.4k

selectedindex change is not working.

Apr 26 2016 3:19 AM
In my gridview selectedindexchanged is not working. My gridview is inside the update panel, thats why its not working. I have already added the asynchronous post back trigger, then also its not working.
 
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="GridView3" EventName="SelectedIndexChanged" />
</Triggers>
<ContentTemplate>
<asp:GridView ID="GridView3" runat="server"
onrowdatabound="GridView3_RowDataBound" AlternatingRowStyle-BackColor="#C1C1C1"
onselectedindexchanged="GridView3_SelectedIndexChanged" Width="540px"
onrowcreated="GridView3_RowCreated" onrowupdating="GridView3_RowUpdating"
onselectedindexchanging="GridView3_SelectedIndexChanging"
onpageindexchanging="GridView3_PageIndexChanging">
<Columns>
<asp:CommandField ShowSelectButton="True" />
</Columns>
</asp:GridView>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button11" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
 

Answers (5)