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. Very slow GridView

Very slow GridView

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netquestionannouncement
5 Posts 2 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.
  • R Offline
    R Offline
    RanjithLogics
    wrote on last edited by
    #1

    Dear All, I am using a gridview in my asp.net application which is having an edit Item template as well as an Item template. Each of the template is having about 50 controls in which three are combo boxes which are populated from sqldatasource. I use this gridview for edit update delete operations. My problem is that , when I am having about 10 rows my gridview is almost freezing when doing edit update operations. I commented all the source codes thet I have in code behind class, but no use. Do the rendering take this much time ? Can anyone please give me some tips for speeding up my operations. I need to use this type of gridview in many places in my application. Please help.. Thanks in advance

    Ranjith Stephen

    V 1 Reply Last reply
    0
    • R RanjithLogics

      Dear All, I am using a gridview in my asp.net application which is having an edit Item template as well as an Item template. Each of the template is having about 50 controls in which three are combo boxes which are populated from sqldatasource. I use this gridview for edit update delete operations. My problem is that , when I am having about 10 rows my gridview is almost freezing when doing edit update operations. I commented all the source codes thet I have in code behind class, but no use. Do the rendering take this much time ? Can anyone please give me some tips for speeding up my operations. I need to use this type of gridview in many places in my application. Please help.. Thanks in advance

      Ranjith Stephen

      V Offline
      V Offline
      VenkataRamana Gali
      wrote on last edited by
      #2

      aviod DB trips, i.e., very first time retrieve the data & store in dataset. user this only one dataset. as per the u r requirement, avoid the database trips.

      Ramana

      R 1 Reply Last reply
      0
      • V VenkataRamana Gali

        aviod DB trips, i.e., very first time retrieve the data & store in dataset. user this only one dataset. as per the u r requirement, avoid the database trips.

        Ramana

        R Offline
        R Offline
        RanjithLogics
        wrote on last edited by
        #3

        Hii Thanx for the reply. The gridview is associated with an sqldatasource. As per your reply, is it making the gridview slow ??

        Ranjith Stephen

        V 1 Reply Last reply
        0
        • R RanjithLogics

          Hii Thanx for the reply. The gridview is associated with an sqldatasource. As per your reply, is it making the gridview slow ??

          Ranjith Stephen

          V Offline
          V Offline
          VenkataRamana Gali
          wrote on last edited by
          #4

          use dataset instead of sqldatasource, defenetly i will imporve ur performance

          Ramana

          R 1 Reply Last reply
          0
          • V VenkataRamana Gali

            use dataset instead of sqldatasource, defenetly i will imporve ur performance

            Ramana

            R Offline
            R Offline
            RanjithLogics
            wrote on last edited by
            #5

            OK.. thanks I will try that way.. And also I found another thing. I am showing the gridview in a div with scroll bars. When I turned the paging option on in gridview ,it helped the situation very much and I found the operations being faster. :) Anyways thank you very much for your precious opinion ..

            Ranjith Stephen

            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