Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. ASP.NET GridView not displaying label value while paging

ASP.NET GridView not displaying label value while paging

Scheduled Pinned Locked Moved ASP.NET
csharpasp-net
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Inderjeet Kaur
    wrote on last edited by
    #1

    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

    I 1 Reply Last reply
    0
    • I Inderjeet Kaur

      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

      I Offline
      I Offline
      Inderjeet Kaur
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups