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. General Programming
  3. C#
  4. Best way to populate grid? [modified]

Best way to populate grid? [modified]

Scheduled Pinned Locked Moved C#
cssquestion
6 Posts 4 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.
  • Z Offline
    Z Offline
    zaboboa
    wrote on last edited by
    #1

    Hello, I have 30 thousand records. What would be the best and fastest way to populate the grid? DataSource is the way to go I think. Thank you. -- modified at 16:40 Thursday 26th July, 2007

    J E U 3 Replies Last reply
    0
    • Z zaboboa

      Hello, I have 30 thousand records. What would be the best and fastest way to populate the grid? DataSource is the way to go I think. Thank you. -- modified at 16:40 Thursday 26th July, 2007

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      Yep, that would work. :)

      Tech, life, family, faith: Give me a visit. I'm currently blogging about: How could God prove Himself to humanity? The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

      1 Reply Last reply
      0
      • Z zaboboa

        Hello, I have 30 thousand records. What would be the best and fastest way to populate the grid? DataSource is the way to go I think. Thank you. -- modified at 16:40 Thursday 26th July, 2007

        E Offline
        E Offline
        Eliz k
        wrote on last edited by
        #3

        Remember to use paging on your data grid. Eliz.K

        www.oin1.com

        1 Reply Last reply
        0
        • Z zaboboa

          Hello, I have 30 thousand records. What would be the best and fastest way to populate the grid? DataSource is the way to go I think. Thank you. -- modified at 16:40 Thursday 26th July, 2007

          U Offline
          U Offline
          Urs Enzler
          wrote on last edited by
          #4

          30 thousand records in one single grid? Why do you want to do this? No user can scroll through 30 thousand of records!

          -^-^-^-^-^- no risk no funk

          Z 1 Reply Last reply
          0
          • U Urs Enzler

            30 thousand records in one single grid? Why do you want to do this? No user can scroll through 30 thousand of records!

            -^-^-^-^-^- no risk no funk

            Z Offline
            Z Offline
            zaboboa
            wrote on last edited by
            #5

            Dude, did you see the topic of this thread? Did I ask your oppinion if I should populate 30 thousand records or not? IF you have no suggestions, don't post.

            U 1 Reply Last reply
            0
            • Z zaboboa

              Dude, did you see the topic of this thread? Did I ask your oppinion if I should populate 30 thousand records or not? IF you have no suggestions, don't post.

              U Offline
              U Offline
              Urs Enzler
              wrote on last edited by
              #6

              Yeah i can read. But you give very few information about what you really want to do. And my opinion is that is is very important to know what your application should do to provide a good solution (and you asked for the best). So I could just say that you should go ahead and put all records into a DataTable and set it as the DataSource of the grid, call DataBind and wait for your browser rendering the page. Or I could say, no better use an ObjectDataSource or SqlDataSource that provides the data to the grid, because this way you could implement paging, sorting much simpler. But both ways are surely not the BEST ways to do it, but without knowing what you want to accomplish, I can not give you a better answer that the ones you already received. So, sorry I tried to help - won't happen again.

              -^-^-^-^-^- no risk no funk

              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