ASP.NET GridView not displaying label value while paging
-
Hi I am having a GridView paging done using Object data source. I want to calculate the sum of records of a column. First I need to find out values if ID = 1 sum all IDS with 1, if ID=2 sum all IDS with 2 and Display. I am able to do it but when i move to next page my label looses its value while rendering.
Inderjeet Kaur Sr. Software Engg
-
Hi I am having a GridView paging done using Object data source. I want to calculate the sum of records of a column. First I need to find out values if ID = 1 sum all IDS with 1, if ID=2 sum all IDS with 2 and Display. I am able to do it but when i move to next page my label looses its value while rendering.
Inderjeet Kaur Sr. Software Engg
Hi I got teh solution for the problem. I am usin Update Panel which gives inconsistent behaviour while postback. SO before closing Update Panel for gridView we need to give this PostBack Trigger </asp:GridView> </ContentTemplate> <Triggers> <asp:PostBackTrigger ControlID ="gvInstitutionReport" /> </Triggers> </asp:UpdatePanel>
Inderjeet Kaur Sr. Software Engg